aboutsummaryrefslogtreecommitdiffhomepage
path: root/share/functions
Commit message (Collapse)AuthorAge
* Bind clipboard-copy to \cx, restore yank bindingGravatar Fabian Homborg2016-06-21
| | | | Fixes #3160.
* Remove SHLVL check.Gravatar Aaron Gyes2016-06-18
| | | | Fixes #3154.
* Decrease minimum SHLVL for suspend without --forceGravatar Aaron Gyes2016-06-15
| | | | There is some discussion on #2269
* `string escape` some eval callsGravatar Aaron Gyes2016-06-15
|
* Refine reading ssh_config (#3146)Gravatar Boris Aranovich2016-06-15
| | | | | | | | | | | | https://www.freebsd.org/cgi/man.cgi?query=ssh_config&sektion=5 1. It is possible to add multiple whitespace characters between the keyword (i.e. Host) and the argument(s). 2. It is allowed to have a single = and whitespace between the keyword and the argument(s). 3. It is possible to add multiple host names under a single Host directive by spacing the names apart. 1. and 3. are actual conventions that we use in our team, and I couldn't get auto-complete working for fish without this modification. Modification explained: a. The space between Host(?:name)? and the \w.* was replaced by (?:\s+|\s*=\s*) to match any sequence of whitespace characters, or optional whitespaces with a single =, per spec. b. Result of first replacement is piped through another string replace to switch duplicate whitespace characters to a single space, and then piped to be split by that space. This allows specifying several aliases or host names in a single Host/Hostname definition, also per spec.
* Quote `eval ... webconfig.py` in fish_config.fishGravatar Aaron Gyes2016-06-14
| | | | | | This was causing issues launching fish_config on OS X if fish.app is renamed to contain a space (noted, but likely not the actual problem, in issue #3140)
* Merge pull request #3123 from moverest/completionGravatar Fabian Homborg2016-06-10
|\ | | | | Extend autocompletion support
* | Allow compressed man pages in `help`Gravatar Fabian Homborg2016-06-10
| | | | | | | | | | | | | | | | It seems Fedora compresses our whopping 340k of man pages. Fixes #3130. Inspired by @TieDyedDevil's work there.
| * Split __fish_print_modules from modprob.fish and modinfo.fishGravatar Clément Martinez2016-06-08
|/
* Do not hardcode RGB values in color definitions.Gravatar Jorge Bucaran2016-06-01
|
* Style fixes for fish_vi_cursorGravatar Fabian Homborg2016-05-30
| | | | | | "$fcn" [ci skip]
* Remove stray "0" output from man completionsGravatar Fabian Homborg2016-05-29
|
* Man completions: Show all pages for a sectionGravatar Fabian Homborg2016-05-29
| | | | If one is given, of course.
* Indent __fish_git_promptGravatar Fabian Homborg2016-05-29
|
* Git prompt: Remove legacy optionGravatar Fabian Homborg2016-05-29
| | | | | Git has supported `rev-list --count` for years, so this shouldn't be needed anymore.
* Stringify git promptGravatar Fabian Homborg2016-05-29
|
* Git prompt: Shorten the sha ourselvesGravatar Fabian Homborg2016-05-28
| | | | Possibly fixes #3083.
* Git prompt: Only shorten sha if neededGravatar Fabian Homborg2016-05-28
| | | | | | | | | | | This speeds up the common case when IO is slow, e.g. when used with sshfs. We only use the short sha for figuring out whether the state is valid (for which a long sha should also work) and for display when HEAD is detached (I think that's the correct git-ism). Working towards #3083.
* Funced: Make removal safer, take twoGravatar Fabian Homborg2016-05-28
| | | | | Now we try to remove the file and then the directory, without forcing anything, showing any (quite unexpected) error to the user, once.
* Split off __fish_complete_blockdevice from mount.fish.Gravatar Frederik “Freso” S. Olesen2016-05-27
| | | | | | The __fish_complete_blockdevice function can be useful to other completions than mount.fish, so it should live on its own so its available to those.
* Run fish_indent on default_key_bindingsGravatar Fabian Homborg2016-05-25
|
* Add clipboard helper functions and bind themGravatar Fabian Homborg2016-05-25
| | | | \cy copies, \cv pastes.
* Funced: Limit damage when removing tmpfileGravatar Fabian Homborg2016-05-24
| | | | | | This will now only forcibly remove _files_, not directories. $tmpdir _should_ be something only we use in /tmp, but mktemp might screw up.
* Simplify some code in abbrGravatar Fabian Homborg2016-05-23
| | | | We actually need less duplication here.
* Fix printing "--" in abbr --showGravatar Fabian Homborg2016-05-23
|
* Fix "--" argument in abbrGravatar Fabian Homborg2016-05-23
|
* Don't mangle arguments in abbrGravatar Fabian Homborg2016-05-23
| | | | | | | This now (rightly) throws an error if there's a space in the key (because we can't store it). Fixes #2997.
* Fix funced's tmpfile generation on OSXGravatar Fabian Homborg2016-05-23
| | | | OSX mktemp... isn't great, so work around that fact.
* Check validity of fish_key_bindingsGravatar Fabian Homborg2016-05-22
| | | | | | This potentially leads to an unusable session (when fish_key_bindings is set in config.fish to a value without corresponding function), so we should take care.
* add `function --shadow-builtin` flagGravatar Kurtis Rader2016-05-14
| | | | | | | | | | | | | | It's currently too easy for someone to bork their shell by doing something like `function test; return 0; end`. That's obviously a silly, contrived, example but the point is that novice users who learn about functions are prone to do something like that without realizing it will bork the shell. Even expert users who know about the `test` builtin might forget that, say, `pwd` is a builtin. This change adds a `--shadow-builtin` flag that must be specified to indicate you know what you're doing. Fixes #3000
* Remove the errant newline in __fish_cancel_commandline againGravatar ridiculousfish2016-05-13
|
* fix the style of several functionsGravatar Kurtis Rader2016-05-08
| | | | | | I'm going to modify these functions as part of dealing with issue #3000 and don't want those changes to be masked by running the files through `make style`.
* Change abbr to allow non-letter keys (#2996)Gravatar Elis Axelsson2016-05-06
|
* add floating point output to `math` commandGravatar Kurtis Rader2016-05-03
| | | | | | | | | | | This makes it easy for the user to request floating point output with the desired number of digits after the decimal point (not to be confused with significant digits). Note that this is just a thin wrapper so someone can say `math -s3 10 / 3` rather than `math "scale=3; 10 /3"`. Resolves #1643
* Bind btab also in vi-bindingsGravatar Fabian Homborg2016-05-03
| | | | | | It wasn't inherited. Fixes #2964.
* Add missing color definitions to __fish_init_1_50_0 reset. (#2987)Gravatar Jorge Bucaran2016-05-01
| | | | | | | | | | | | | | * Add missing color definitions to __fish_init_1_50_0 reset. The values where determined by inspecting the values of: * fish_color_end * fish_color_user * fish_color_host after resetting the color theme via fish_config. * Add documentation for fish_color_user and fish_color_host.
* don't use colors when writing the ^C indicatorGravatar Kurtis Rader2016-04-30
| | | | There was an extended discussion in https://github.com/fish-shell/fish-shell/issues/2904 about using a bright yellow background to make the cancelled command indicator, ^C, standout. The upshot was that standout (i.e., reversing fg/bg colors) mode should be used until themes are agumented with proper support for background colors and special characters.
* Erase the autosuggestion in fish_cancel_commandline by clearing to EOLGravatar ridiculousfish2016-04-29
|
* Remove an errant newline in the fish_cancel_commandline outputGravatar ridiculousfish2016-04-29
| | | | | Now the next line appears immediately after the cancelled line, without an intervening newline
* clarify fish_vi_mode deprecation warningGravatar Kurtis Rader2016-04-28
| | | | | | | Also, correct the Vi mode default escape timeout. I intended it to be 100 ms in my previous change but it ended up 10 ms which is far too short. A 10 ms delay will continue to cause problems for people running fish inside `screen`, `tmux`, or over high latency connections.
* provide a realpath implementationGravatar Kurtis Rader2016-04-28
| | | | | | | Not all distros have a `realpath` command. Provide a function that uses the real command if available else use the fish builtin. Fixes #2932
* Allow setting key bindings universallyGravatar Fabian Homborg2016-04-26
| | | | As always, we default to setting globally.
* Remove named arg in fish_default_key_bindingsGravatar Fabian Homborg2016-04-26
| | | | This wasn't actually used anywhere.
* Set fish_key_bindings globally in binding functionsGravatar Fabian Homborg2016-04-26
| | | | This should fix the tests.
* Deprecate fish_vi_modeGravatar Fabian Homborg2016-04-26
| | | | | This was never mentioned in the documentation as the way to switch to vi-mode, and now does nothing of value anymore.
* Let the binding functions set the binding variableGravatar Fabian Homborg2016-04-26
| | | | | This ensures they can just be called and "the right thing" will happen - fish_user_key_bindings will be executed, the variable will reflect the bindings.
* Remove $__fish_vi_modeGravatar Fabian Homborg2016-04-26
| | | | | | | This makes fish_mode_prompt rely on $fish_key_bindings instead. fish_bind_mode is also set in default mode (only always "default"), so it can't be used as the indicator.
* add way to comment/uncomment a commandGravatar Kurtis Rader2016-04-19
| | | | Fixes #2375
* Move 24bit setup into config.fishGravatar Fabian Homborg2016-04-18
| | | | Fixes #2941.
* number `dirh` output to make prevd/nextd easierGravatar Kurtis Rader2016-04-16
| | | | Fixes #2786