Kurtis Rader
11a60c8374
reformat all fish scripts
...
I hate doing this but I am tired of touching a fish script as part of
some change and having `make style` radically change it. Which makes
editing fish scripts more painful than it needs to be. It is time to do
a wholesale reformatting of these scripts to conform to the documented
style as implemented by the `fish_indent` program.
2016-11-27 21:27:22 -08:00
Fabian Homborg
d7c690b416
Fix "." and ".." paths in cd completions
...
Previously if a directory called "a" was in $CDPATH, `cd ./a<TAB>` would
complete from there even if it was invalid.
2016-04-08 15:03:49 +02:00
Fabian Homborg
0953590cca
cd completion: No description for absolute paths
...
This also removes the "pushd/popd" dance and only executes the CDPATH
stuff when we need to.
2016-04-04 18:22:48 +02:00
ridiculousfish
434eabb787
Remove errant slash from the end of cd completions
...
Fixes #2465
2015-10-07 13:39:42 -07:00
Fabian Homborg
0a99772572
Rewrite __fish_complete_cd
...
This no longer uses "eval" (which is scary), and is a bit shorter (which
is nice).
Fixes #2299
Fixes #952
Improves #2300
Improves #562
2015-10-07 10:41:05 +02:00
Fabian Homborg
b85a8bbbfe
Rename sgrep to __fish_sgrep
...
Makes it harder to cause issues with aliases, see fish-shell#2245
2015-09-09 20:55:04 +02:00
ridiculousfish
63a15e232b
Fix indentation in __fish_complete_cd
2013-11-26 00:07:18 -08:00
Jörg Thalheim
cb86b8f8fc
cd completion: handle not accessible directories
2013-11-26 00:04:31 -08:00
ridiculousfish
12095c721c
Remove unnecessary eval in __fish_complete_cd
...
https://github.com/fish-shell/fish-shell/pull/589
2013-02-20 18:43:54 -08:00
ridiculousfish
41fc3bcb74
Remove some debugging code inadverently left in __fish_complete_cd.fish
2013-02-11 14:42:23 -08:00
Łukasz Niemier
47df1ae40a
Remove trailing whitespaces and change tabs to spaces
2012-11-18 11:23:22 +01:00
ridiculousfish
7d029778e6
Disable file completion descriptions per https://github.com/fish-shell/fish-shell/issues/279
2012-08-15 18:20:44 -07:00
maxfl
e995cc9329
fix #177 (complete 'cd' only with paths)
2012-06-26 19:17:32 -07:00
Andreas Raster
1ae44c6b3c
still didn't work correctly, there were delimiters missing in the conditional as well
2011-06-24 02:45:05 +02:00
Andreas Raster
b2887477e3
last commits fix now also applied in the 'else' clause
2011-06-21 23:17:03 +02:00
Andreas Raster
8e2db29c9a
fixed an issue when trying to complete something like 'cd /mnt/windows7/Program\ Files\ \('
...
fish would always spew a huge error message all over my terminal complaining about
some kind of tokenizer error, this patch fixed that
2011-06-21 17:02:49 +02:00
Grissiom
70322077d2
remove trialing spaces #2
2010-09-18 10:18:26 +08:00
Grissiom
1b16758d7e
Fix cd prompt fail on the case that CDPATH have variables
2010-09-17 16:01:44 +08:00
axel
8b73bac580
Rename __fish_complete_directory to increase consistency
...
darcs-hash:20061202233433-ac50b-48368a338773ad47807b0032389fd305d86b3275.gz
2006-12-03 09:34:33 +10:00
axel
f64364cced
Replace all internal uses of grep with sgrep, which is a wrapper around grep that strips away any GREP_OPTIONS. This is needed to avoid users who have added arbitrary switches to GREP_OPTIONS, thus changing its behaviour.
...
darcs-hash:20061129140004-ac50b-485ff6bfd71e9459ba62461f6e093ca5c9ddd664.gz
2006-11-30 00:00:04 +10:00
axel
ba9fbc67da
Fix bug in completions for the cd builtin that caused missed completions when using relative search paths and CDPATH. Also move the completions function to it's own file.
...
darcs-hash:20060709235518-ac50b-36c59205edbecd5c8967d8784fd43e46729c3cdc.gz
2006-07-10 09:55:18 +10:00