Eric Mrak
64ca6c066c
Caching for pacman packages.
2014-02-16 18:09:55 +08:00
Eric Mrak
d1cf5ab286
adding completion for aura. adding pacman integration for __fish_print_packages
2014-02-16 18:09:55 +08:00
waterhouse
b1545c5ce2
'seq' should return 1, not exit 1, on bad arglist
2014-02-16 01:17:12 -08:00
glennj
b475325b5e
math.fish: exit if no output (e.g. from syntax error)
...
Closes #1175
2014-02-05 17:26:34 +08:00
ridiculousfish
7d345018af
Redirect stderr of initial call to __fish_reload_key_bindings. Fixes ##1155
2014-02-03 16:46:01 -08:00
David Adam
27b6fe682d
Squashed commit of the following:
...
commit d81ae2665f
Author: Max Gonzih <gonzih@gmail.com>
Date: Sun Feb 2 16:22:18 2014 +0300
Check for command-not-found command on suse
commit 004b794c82
Author: Max Gonzih <gonzih@gmail.com>
Date: Sun Feb 2 14:04:41 2014 +0300
Fix cnf handler for Suse and Fedora
fixes #1208
2014-02-02 21:42:24 +08:00
ridiculousfish
20130d89dc
Support for escaped colons in makefile targets in __fish_print_make_targets, as part of #1259
2014-01-29 15:42:52 -08:00
David Adam
8fbffe250a
__fish_print_packages: correct syntax for yum, improve yum/rpm pipelines
...
Closes #1269 (output to cache file).
Reworks the editing pipeline for both yum and rpm completions down to a
single sed command.
2014-01-29 12:47:56 +08:00
Geoff Nixon
60808a4820
Enhance/fix isatty
using command test
.
...
Presently, `isatty` only works on a handful of keywords. Here it
is rewritten to be able to take any path, device or fd number as
an argument, and eliminates errors printed to stdout.
Per discussion in #1228 , using `builtin test -c` within a pipe to
test special file descriptors is not viable, so this implementation
specifcially uses `command test`. Additionally, a note has been
added to the documentation of `test` regarding this potential
aberration from the expected output of the test utility under the
'Standards' section.
2014-01-28 11:14:54 -08:00
ridiculousfish
7d8766980b
Support escape or up-arrow to cancel the completion search field.
2014-01-27 02:17:31 -08:00
ridiculousfish
5be3606236
Increased support for completion search field. Use btab (shift-tab) to
...
complete-and-search.
2014-01-27 00:56:13 -08:00
ridiculousfish
6d13b8bbc0
Teach down-or-search how to use down-arrow to begin pager navigation
2014-01-25 15:32:13 -08:00
ridiculousfish
2139334c36
Fix for issue where wc on OS X would produce leading spaces, causing
...
down-or-search to fail to match the case statement and therefore do the wrong thing.
2014-01-25 15:22:28 -08:00
Julian Aron Prenner
844b01cb6b
Add 'and' input function; fixes a bug with t,T
...
'and' will prevent later input functions from being executed if the
previous one did not succeed (e.g. a jump to a char not on the command
line)
2014-01-23 10:23:04 +01:00
Julian Aron Prenner
45465e0c45
Merge branch 'bind_mode' of github.com:furunkel/fish-shell into bind_mode
2014-01-22 10:01:53 +01:00
Julian Aron Prenner
4a9be7bf11
Experimental support for f,F,t,T vi commands.
...
Input functions can now have arguments
2014-01-22 10:00:44 +01:00
Julian Aron Prenner
c8e0d18d18
Change mode colors in prompt
2014-01-22 09:00:57 +01:00
Maxim Gonchar
f284f00935
Add tmux support
2014-01-20 21:28:54 +04:00
Maxim Gonchar
71992158bf
Retab again
...
default_keybindings are left with tabs as it was in the beginning
2014-01-20 17:12:32 +04:00
Maxim Gonchar
1514ab8ec5
Retab
2014-01-20 17:03:46 +04:00
Maxim Gonchar
3591900070
More clear way of setting cursor shape
2014-01-20 16:47:13 +04:00
Julian Aron Prenner
44c6fa68cf
Make Ctrl-x autocomplete suggestions; cosmetics
2014-01-20 13:07:32 +01:00
Maxim Gonchar
1279888567
Add cursor shape handler
2014-01-20 10:19:41 +04:00
Max Gonzih
114f803a88
Fix e and E in visual vi mode
2014-01-19 17:07:23 +03:00
Max Gonzih
69778efb6b
Add x binding to delete whole line in visual mode
2014-01-19 17:04:02 +03:00
Max Gonzih
e7df20f69b
Add x binding to delete selection in visual vi mode
2014-01-19 16:50:56 +03:00
Julian Aron Prenner
cd64a777c3
Set $fish_bind_mode to default on fish startup; set $fish_key_bindings
...
when sourcing fish_vi_mode.fish
2014-01-19 10:27:39 +01:00
ridiculousfish
808bc42f2a
Further work on keyboard navigating the completion list
2014-01-18 12:42:53 -08:00
Julian Aron Prenner
3728fc7dba
Add kill-selection function and visual binds for 'y' and 'd'
2014-01-18 10:18:29 +01:00
Julian Aron Prenner
88eae68987
Fix a bug, commandline -s works now as expected. Add "*y binding in
...
visual mode
2014-01-17 20:32:24 +01:00
furunkel
8b89bd7a1f
Merge pull request #4 from maxfl/bind_mode
...
Minor bind fixes
2014-01-17 08:06:49 -08:00
Maxim Gonchar
fc68b9d7cd
Minor bind fixes
...
Comment out 'o' binding
Add '['/']' bindings to navigate current token history
Fix 'P' to paste indeed
Add "*P/"*p to insert current selection clipboard using xsel
2014-01-17 10:40:32 +04:00
Julian Aron Prenner
0cd125b55c
Merge branch 'bind_mode' of github.com:furunkel/fish-shell into bind_mode
2014-01-15 22:41:50 +01:00
Julian Aron Prenner
444cb894be
Set selection color to purple
2014-01-15 22:41:10 +01:00
Maxim Gonchar
8138b2080b
Even dirtier *aw/*iw
2014-01-16 01:25:44 +08:00
Maxim Gonchar
737b204b2c
Add dirty bindings for *iw, *aw
...
Put E, W bindings in agreement with vim
2014-01-16 00:55:51 +08:00
Julian Aron Prenner
213e907044
Merge remote-tracking branch 'upstream/master' into bind_mode
...
Conflicts:
builtin.cpp
reader.cpp
share/functions/fish_default_key_bindings.fish
2014-01-15 15:27:06 +01:00
Julian Aron Prenner
c8d5131a42
Add experimental support for selection and visual mode
2014-01-15 15:07:22 +01:00
Julian Aron Prenner
fc21bb6eda
Replace builtin 'bind_mode' with variable $fish_bind_mode
2014-01-15 12:04:52 +01:00
Maxim Gonchar
9684cbf850
Add optional options to fish_default_key_bindings
...
These options will be passed to the bind command.
Now it's possible to call
fish_default_key_bindings -M insert
to set all original bindings to the insert mode
2014-01-15 15:26:38 +08:00
Maxim Gonchar
b0e94c15e6
Update vi bindings:
...
The following normal mode bindings are added:
o, I, A, gg, G, g^, g$, x, X, backspace, d*, D, s, S, c*, C, ~, gu,
gU, J, K, y*, Y, p, P
I was not able to add binding for 'O'
dd now deletes the whole line as vim, while D deletes the line to the
end. c, s, y act the same way
2014-01-15 00:21:13 +08:00
Julian Aron Prenner
874d3aca45
Make Ctrl+C exit insert mode, add some more backspace binds.
2014-01-14 15:24:26 +01:00
Konrad Borowski
b9394b9599
Rename __fish_complete_usb function.
2014-01-14 08:28:15 +01:00
leafonsword
129d2f803a
新文件: share/completions/lsusb.fish
...
新文件: share/functions/__fish_complete_usb.fish
2014-01-13 20:24:20 +01:00
Max Gonzih
71f6986dd6
Fix __fish_print_packages for rpm
2014-01-13 22:36:02 +08:00
Alexander I.Grafov
75b02e1d27
Fixes issue #1234 . Fish now parses system wide ssh configuration file in addition to user config.
2014-01-12 14:59:46 +05:30
David Adam
02bd933c58
Add Alt+. as a default binding for history-token-search-backward
...
Closes #89 .
2014-01-08 15:15:15 +08:00
Julian Aron Prenner
dc90cd6bc4
Better input handling; add support multiple binding commands
2014-01-01 00:11:32 +01:00
Julian Aron Prenner
f408bc4808
Add sourceable script file to enable vi mode
2013-12-31 16:17:03 +01:00
Julian Aron Prenner
a302f37447
Fix bug
2013-12-31 16:16:28 +01:00
Julian Aron Prenner
f501e30353
Add sample prompt for vi mode
2013-12-31 14:56:12 +01:00
Julian Aron Prenner
2587649ca2
Allow restricting earsing and listing of bindings to specific mode;
...
implement force repaint and multi-char bindings;
2013-12-31 14:53:29 +01:00
Julian Aron Prenner
d1faac58dd
Implement bind modes
2013-12-31 01:52:41 +01:00
David Adam
1efb120248
__fish_complete_svn: remove GNU extension options
...
Continuation of https://github.com/fish-shell/fish-shell/pull/1195/ .
Removes use of --delimiter and --fields with cut(1) as these are GNU
extensions.
Note that a number of completions use these options, but as they are
only for GNU/Linux-specific tools have remained unmodified.
2013-12-30 12:32:24 +08:00
Derek Li
93f7c14ea6
Math: disable bc multi-line output.
2013-12-26 18:32:36 +01:00
Javier Gonel
12be83562d
Non standard cut options
...
Some cut versions don't have `--delimiter` or `--fields` but use the standard options `-d` and `-f`
2013-12-18 18:02:19 +02:00
David Adam
f0946baeaa
__fish_git_prompt: initialise colors early
...
Otherwise __fish_git_prompt_informative_status tries to expand an unset
variable.
Closes #1157 .
2013-12-02 20:09:15 +08:00
Konrad Borowski
e1608362d0
Fix s/$remote// mistake.
...
$remote could have contained /.
2013-11-29 15:26:33 +01:00
Jelte Fennema
44d13869ad
Add eselect, rc-update and rc-service completions. (These are utilities used by Gentoo Linux)
...
Disable php completion for the 4th part of the command, since php-eselect is differently designed and causes errors
Closes #1131 .
2013-11-27 18:36:05 +08:00
Konrad Borowski
9862eb930d
Use sed instead of sh for Informative Git Prompt.
...
Informative Git Prompt assumes that sh is bash compatible, but that's
not the case for FreeBSD. Fixes #1140 .
2013-11-27 11:35:01 +01:00
David Adam
0c4dab54f1
__fish_complete_man: Use awk to parse output of apropos
...
Closes #960 .
Uses pattern matching rather than OS detection. Works with BSD awk, GNU
awk and Solaris' nawk.
2013-11-27 17:58:43 +08: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
Siteshwar Vashisht
8fc26c1e58
Use fish from $__fish_bin_dir while calling fish_update_completions at startup
2013-11-17 16:24:00 +05:30
David Adam
14b6d32fe6
add bindings for PuTTY's I-can't-believe-it's-xterm keyboard
...
(see #170 )
2013-11-13 11:20:59 +08:00
Siteshwar Vashisht
0de26732bf
Don't show warning while generating man page completions on startup
2013-11-12 22:14:14 +05:30
Siteshwar Vashisht
0f02997bcc
Autogenerate manpage completions in background if they do not exist
2013-11-12 22:14:14 +05:30
Konrad Borowski
ba2fcd9dae
Use basename for man argument
...
This protects from providing paths to man, like `./a.out`.
2013-11-09 19:50:38 +08:00
Konrad Borowski
c0ad54fe02
Allow reading manpages by using F1.
2013-11-09 19:50:38 +08:00
Asger Hautop Drewsen
4a6592597a
Make type -a print all executables in PATH
2013-10-29 13:32:14 +08:00
Brian Gernhardt
59dd6678c3
git_prompt: Allow all set_color arguments
...
There is no need to explicitly check for two arguments and set --bold.
Instead the user can simply "set __fish_git_prompt_color_flags --bold
red".
The current check violates the expectation set by the documentation
that you can use any set_color argument as the current code interprets
"--bold red" as "--bold --bold" instead.
Plus, by passing the full contents of the variable directly, the user
can do more adventurous things like set the background as well.
2013-10-21 12:36:42 -04:00
Brian Gernhardt
137463dc6d
git_prompt: Add upstream_prefix when verbose
...
git.git's git-prompt may not contain a configurable prefix, but it
does display a space before the upstream information when displaying
verbose information. Rather than using a space always or never,
default to a space whenever verbose is in showupstream.
2013-10-21 12:34:14 -04:00
Brian Gernhardt
b652920500
git_prompt: optionally show upstream branch name
...
Adds a "name" option to __fish_git_prompt_showupstream that shows an
abbreviated branch name when the upstream type is verbose.
Based on git.git 1f6806c: git-prompt.sh: optionally show upstream
branch name
2013-10-21 12:08:43 -04:00
sra
0efa211a05
Use manpath instead of man --path in man.fish function (as in commit
...
c7941fc
).
2013-10-03 11:46:58 +02:00
David Adam
1235e60a29
default key bindings: fix syntax errors introduced in 735af50
2013-09-24 22:49:11 +08:00
David Adam
735af50ce9
default key bindings: add further iTerm2 bindings
2013-09-24 20:04:05 +08:00
David Adam
c2dcfc9176
__fish_print_hostnames: do a better job of searching SSH files
2013-09-19 23:24:36 +08:00
David Adam
7935b1613a
__fish_print_packages: ignore errors, do less manipulation
...
Closes #479 by piping STDERR to /dev/null.
Also does much less manipulation of the package list; there are no
packages in any of the archives containing the names that are stripped
out as far as I can see.
2013-09-17 22:27:15 +08:00
David Adam
8df81f93c8
__fish_print_packages: whitespace fix
2013-09-17 22:20:16 +08:00
nulltrek
daf3469ce4
Add newline before listing current token.
2013-09-13 14:30:13 +08:00
nulltrek
e031fa7207
Fix some typos.
2013-09-12 11:46:31 +02:00
nulltrek
1b521d0822
Rename internal functions for consistency.
2013-09-12 11:46:31 +02:00
Christian Rishøj
cd1c2f74d3
add support for downcase-word, upcase-word and capitalise-word
2013-09-09 18:46:16 +02:00
ridiculousfish
3816abb9de
Make __fish_print_mounted work better on OS X
2013-09-05 11:40:51 -07:00
ridiculousfish
7561075af8
OS X Mavericks keybinding fix
2013-09-05 00:46:19 -07:00
Konrad Borowski
fe10f98038
Fix VTE version test
2013-09-04 22:08:44 +02:00
Tim Cuthbertson
74e27a0a82
Notify vte-based terminals of $PWD change ( #906 )
2013-09-04 20:30:42 +02:00
Tim Cuthbertson
04c0ac9ee8
add __fish_urlencode function which URL-escapes stdin
2013-09-04 20:30:42 +02:00
ridiculousfish
03aae47424
Fix more indentation in fish_default_key_bindings.fish
2013-08-31 21:11:09 -07:00
ridiculousfish
df0aaa1ebe
Fix indentation
2013-08-31 21:10:11 -07:00
ridiculousfish
23ba7b5bff
Support iTerm2 forward/backward word escapes
...
(https://github.com/fish-shell/fish-shell/issues/920 )
2013-08-31 14:29:52 -07:00
Konrad Borowski
7a1bedcab6
Fix #976 . Now prompt tries to use standard git command.
2013-08-26 16:24:59 +02:00
ridiculousfish
8605cc685d
Fix tabs in share/functions/__fish_config_interactive.fish
2013-08-24 12:20:21 -07:00
nulltrek
9a49b2c9fb
Fix "command not found" handler behaviour.
2013-08-24 12:16:28 -07:00
lledey
69c6b007aa
Remove grep warning from make target completion
...
grep was throwing warnings when no Makefile was found
Signed-off-by: lledey <lledey@gmail.com>
2013-08-19 22:14:20 -04:00
ridiculousfish
e849beabba
Initial work towards various IO cleanups with an eye to fixing https://github.com/fish-shell/fish-shell/issues/110
2013-08-19 18:06:24 -07:00
Konrad Borowski
2979d3bf16
Fix #684 by putting newline after $argv
...
It's rather hacky, but it sort of works. (but then, this makes fish
compare to PHP (but PHP doesn't put that newline), so perhaps I
shouldn't do that - http://git.io/GFurbg )
2013-08-18 10:57:33 +02:00
ridiculousfish
77b13d02f0
Fix "." function to not shadow scopes, so the tests pass again. Remove eval's use of "." function.
2013-08-17 17:00:15 -07:00
Konrad Borowski
3e115b7a85
Mac OS X doesn't support uname -o. Use uname instead.
...
I break compatibility with Mac OS X again, that I don't have access
to. Result: Stuff break, and I have to fix it, so it will perhaps
work. At least, I hope it will work.
2013-08-16 20:48:44 +02:00
Konrad Borowski
d407d680ea
Show path containing current disk drive in Windows in title
2013-08-14 12:21:17 +03:00