aboutsummaryrefslogtreecommitdiffhomepage
path: root/share/functions
Commit message (Collapse)AuthorAge
...
* provide a better experience when user presses \cCGravatar Kurtis Rader2016-04-14
| | | | Fixes #2904
* Remove the default self-insert binding in vi-default modeGravatar Fabian Homborg2016-04-12
| | | | Fixes #2832.
* Fix "." and ".." paths in cd completionsGravatar Fabian Homborg2016-04-08
| | | | | Previously if a directory called "a" was in $CDPATH, `cd ./a<TAB>` would complete from there even if it was invalid.
* Stringify many completions and functions, with --invert stringification.Gravatar Aaron Gyes2016-04-08
| | | | | | | | I believe apm must have been buggy - example output that I found online showed `tr` was mangling paths with spaces in it. Should be fixed. Also, use dscl on OS X in __fish_complete_users.fish like __fish_print_users.fish already does.
* cd completion: No description for absolute pathsGravatar Fabian Homborg2016-04-04
| | | | | This also removes the "pushd/popd" dance and only executes the CDPATH stuff when we need to.
* __fish_print_packages: use libzypp builtin cache for zypperGravatar Sam Yu2016-03-30
|
* Add history --helpGravatar Fabian Homborg2016-03-30
| | | | This was probably an oversight - the builtin supports it, the function doesn't.
* more fish_indent cleanup for prev commitGravatar Kurtis Rader2016-03-29
| | | | | Commit dfb23c4fce11d9d0577a2cb3c9e192bc24f64c8c was supposed to incude all the edits to make the code compliant with fish_indent.
* fix regression to vi-mode \cc bindingGravatar Kurtis Rader2016-03-29
| | | | | | | Commit c0e8ad6 on 2015-10-02 to "Make vi bindings inherit the defaults" inadvertently reverted commit b6b6de3. Fix that regression. And while I hate to make "git blame" say I changed the entire file make the function adhere to fish_indent style.
* limit size of cd history to 25 directoriesGravatar Kurtis Rader2016-03-23
| | | | | | | | | | | | | | | The existing implementation grows the $dirprev array without bounds. Besides causing what would appear to be a memory leak it also makes the nextd and prevd commands more expensive than they need to be. It also makes it harder to create a useful "menu" cd command. In addition to implementing a reasonable limit on the size of the $dirprev array I've reformatted the code using fish_indent. Update the documentation to include mentions of the $dirprev and $dirnext variables as well as the limit on how much directory history is kept. Fixes 2836
* Make reading ssh files case-insensitiveGravatar Fabian Homborg2016-03-22
| | | | Fixes #2843
* implement swap-selection-start-stop functionGravatar Federico Ferri2016-03-20
| | | | | | | | | The swap-selection-start-stop function goes to the other end of the highlighted text, the equivalent of `o' for vim visual mode. Add binding to the swap-selection-start-stop function, `o' when in visual mode. Document swap-selection-start-stop, begin-selection, end-selection, kill-selection.
* fix w, e (with a trick to cope with big-words)Gravatar Federico Ferri2016-03-20
|
* add \r equivalent bindingGravatar Kurtis Rader2016-03-20
| | | | | | | Add a binding that was overlooked by commit d65c63322ef52443b372c3c49dbd3584596fed6b. Fixes #2834
* make alt-L output respect multi-line promptsGravatar Owen Richardson2016-03-18
| | | | Fixes #718
* Migrate abbrs from =-separated to space-separatedGravatar Fabian Homborg2016-03-02
| | | | | | | | | We silently upgrade existing abbreviations and change the separator when saving. This does not yet warn when the user is using the old syntax. Resolves #2051
* Check ssh's KnownhostsFiles in print_hostnamesGravatar Fabian Homborg2016-03-02
| | | | | | | | These are an additional source of information Thanks to @sysbot (#2313) for the inspiration. This also stringifies the ssh_config reading
* print_hostname: Avoid matches in fstab comments harderGravatar Fabian Homborg2016-03-02
|
* Stringify reading nfs in print_hostnamesGravatar Fabian Homborg2016-03-02
|
* Ignore zero-ips in print_hostnamesGravatar Fabian Homborg2016-03-02
| | | | This would be a lot of useless options for those who block via hosts.
* history.fish: Fix input handlingGravatar Jaime Marquínez Ferrándiz2016-03-02
| | | | Pass the input to 'string', it was accidentally removed in fcdc6a48c0bbdc796975db8d0b7f32434d86d249.
* Use command which in typeGravatar Fabian Homborg2016-02-28
| | | | | | | | Turns out some shells will alias which to be something function-aware, but doing this on fish would blow up because it would call type which would then call which which would then call type.... Fixes #2775
* Rewrite __fish_urlencode to not encode valid charactersGravatar Kevin Ballard2016-02-27
| | | | | | Much better to only encode the characters that are not URL-safe. This also doesn't involve any forking, and it even handles newlines and NULs in the input.
* Try to just see if grep is happy with --color=auto, or not, as the --help ↵Gravatar Aaron Gyes2016-02-20
| | | | exit status varies in BSD vs. GNU.
* Fix the file URL for Terminal.appGravatar Jak Wings2016-02-16
| | | | | | | * When using a UTF-8 locale, set locale to C temporarily in order to read one byte at a time. * Use the builtin printf in a forward-compatible way. (GNU) * Improve the readability of the code.
* Correctly handle --merge in the history.fish functionGravatar ridiculousfish2016-02-16
| | | | | Previously --merge happened to work, but only because it was smuggled in through the 'print' command
* Fix typoGravatar Aaron Gyes2016-02-16
|
* Fix --merge hitting a caseGravatar Aaron Gyes2016-02-16
|
* Improve __fish_print_usersGravatar Sunguk Lee2016-02-15
| | | | Patch from `__make_users_completions` of killall command completion
* Rewrite abbr.fish to not call seqGravatar Fabian Homborg2016-02-13
| | | | | This speeds up adding new abbrs by about 50 to 60% - from 2.3s to 1s for 100 abbrs.
* abbr: Bail early when the abbr already existsGravatar Fabian Homborg2016-02-13
| | | | | This speeds up the common case of `abbr -a` calls in config.fish by about 90% - from 900ms to 90ms for 100 calls.
* Fix user browser for help in CygwinGravatar Gordon Tyler2016-02-12
| | | | | | | Fixes the invocation of a user-specified browser by the `help` command on Cygwin. - Use `cygstart` to launch the browser with escaped quotes to avoid problems with spaces in the path to the browser, (e.g. Program Files). - Use `cygpath` to convert the base help dir to a Windows path before constructing the fie URL to pass to the browser.
* Fix package listing for zypperGravatar Spittie2016-02-12
| | | | | -E is only supported by BSD sed, switch to -r which is also supported by GNU sed
* Use string split in export.fishGravatar Fabian Homborg2016-02-10
| | | | It's a bit more explicit than replace.
* Improve __fish_print_service_namesGravatar Fabian Homborg2016-02-07
| | | | | | | - Reuse systemd completion functions - Remove a fork - Fix #2715 - FreeBSD - Comments
* Merge change for lengthened and configurable escape key timeoutGravatar ridiculousfish2016-02-04
|\
| * change default escape timeoutGravatar Kurtis Rader2016-02-04
| | | | | | | | | | | | | | | | This changes the default escape timeout for the default keybindings (emacs mode) to 300ms and the default for vi keybindings to 10ms. I couldn't resist fixing a few nits in the fish_vi_key_bindings.fish file since I was touching it to set the escape timeout.
* | Another stringification (__fish_complete_command)Gravatar Fabian Homborg2016-02-04
| |
* | Replace `tr` invocationsGravatar Fabian Homborg2016-02-03
| |
* | Stringify history.fishGravatar Fabian Homborg2016-02-03
| |
* | Stringify __fish_complete_lpr_optionGravatar Fabian Homborg2016-02-03
| |
* | Replace uses of expr with math/stringGravatar Fabian Homborg2016-02-03
| |
* | Stringify trapGravatar Fabian Homborg2016-02-03
| |
* | Skip greeting on empty variableGravatar Fabian Homborg2016-01-18
| | | | | | | | | | | | It used to be that way and we recommend `set fish_greeting` (i.e. set to empty) in the docs - possibly since we check if the variable is defined on upgrade.
* | abbr: Ensure we don't split on "=" if the given separator is " "Gravatar Fabian Homborg2016-01-14
| | | | | | | | | | | | | | This fails on e.g. an abbr that uses `env a=b`, like the included test demonstrates. Unfortunately it decreases the speed again (2s vs 2.2s vs 4s original), but correctness is more important.
* | Optimize and modernize abbrGravatar Fabian Homborg2016-01-14
| | | | | | | | | | | | | | | | | | | | - Replace __fish_abbr_escape with `string escape` - Don't double-parse the key - Replace IFS magic with string Together, this seems to speed it up by a factor of about 2.
* | Disable 24bit-color on neovim's terminalGravatar Fabian Homborg2016-01-14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Unfortunately, nvim will, even when running in a terminal that supports it, swallow the sequences whole, rendering the displayed text _white_. This means falling back to 256 colors is the lesser evil as at least a blue-ish color will display as blue while a red-ish will be red, instead of both showing white. nvim's behavior does _not_ change depending on $NVIM_TUI_ENABLE_TRUE_COLOR or any other option I could find and neovim-qt exhibits the same behavior. Fixes #2600.
* | hg_prompt: Use string match -q instead of redirectionGravatar Fabian Homborg2016-01-08
| |
* | Pass the full argv to the NixOS command-not-found handlerGravatar Nathan Zadoks2016-01-03
| | | | | | | | | | | | | | This patch is currently floated from the NixOS side as part of https://github.com/NixOS/nixpkgs/pull/12000, but prior versions of the hook ignore anything but the first argument anyway, so this is backwards-compatible.
* | hg prompt: Throw away `string match` inputGravatar Fabian Homborg2015-12-31
| | | | | | | | This would print redundant characters