mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-25 04:01:38 +08:00
b4447bfa4d
commit 1bbde16b17f04903340206bada9935ea64f785ba Author: Greg Dietsche <Gregory.Dietsche@cuw.edu> Date: Mon Apr 1 01:12:22 2013 -0500 fix spelling in xterm.fish Signed-off-by: Greg Dietsche <Gregory.Dietsche@cuw.edu> commit 392dd59da76e6a1293db79733e1975dbb9ef4032 Author: Greg Dietsche <Gregory.Dietsche@cuw.edu> Date: Mon Apr 1 01:10:08 2013 -0500 fix spelling in type.fish Signed-off-by: Greg Dietsche <Gregory.Dietsche@cuw.edu> commit f82026828e4c08bdf355176f86489783c57efc80 Author: Greg Dietsche <Gregory.Dietsche@cuw.edu> Date: Mon Apr 1 01:09:34 2013 -0500 fix spelling in top.fish Signed-off-by: Greg Dietsche <Gregory.Dietsche@cuw.edu> commit 196f2ec59c0904eb13159d1063e2e6c6edbd50a8 Author: Greg Dietsche <Gregory.Dietsche@cuw.edu> Date: Mon Apr 1 01:08:16 2013 -0500 fix spelling in scrot.fish Signed-off-by: Greg Dietsche <Gregory.Dietsche@cuw.edu> commit 8400d97dce93afe48612c66eb8ddc2bd06b40968 Author: Greg Dietsche <Gregory.Dietsche@cuw.edu> Date: Mon Apr 1 01:07:48 2013 -0500 fix spelling in scp.fish Signed-off-by: Greg Dietsche <Gregory.Dietsche@cuw.edu> commit b68bb3f36915520d2c271e48e2d5356e087e9fcf Author: Greg Dietsche <Gregory.Dietsche@cuw.edu> Date: Mon Apr 1 01:04:30 2013 -0500 fix spelling in mount.fish Signed-off-by: Greg Dietsche <Gregory.Dietsche@cuw.edu> commit 97000184afde10ca26b6dda8597baa0593bb4e09 Author: Greg Dietsche <Gregory.Dietsche@cuw.edu> Date: Mon Apr 1 01:01:46 2013 -0500 fix spelling in hg.fish Signed-off-by: Greg Dietsche <Gregory.Dietsche@cuw.edu> commit 87ca4e71ce57842ab98e4d6b6f9274aafd9713a5 Author: Greg Dietsche <Gregory.Dietsche@cuw.edu> Date: Mon Apr 1 01:00:37 2013 -0500 fix spelling in gzip.fish Signed-off-by: Greg Dietsche <Gregory.Dietsche@cuw.edu> commit 17246a21ad3df39660e6b4c86bf8c6a2239b416b Author: Greg Dietsche <Gregory.Dietsche@cuw.edu> Date: Mon Apr 1 01:00:07 2013 -0500 fix spelling in gunzip.fish Signed-off-by: Greg Dietsche <Gregory.Dietsche@cuw.edu> commit 0f618600508695ed5a93110568343f8a783db8c5 Author: Greg Dietsche <Gregory.Dietsche@cuw.edu> Date: Mon Apr 1 00:59:37 2013 -0500 fix spelling in grep.fish Signed-off-by: Greg Dietsche <Gregory.Dietsche@cuw.edu> commit bacf6a62041d13f1766e90748cfc2c76e1b04b98 Author: Greg Dietsche <Gregory.Dietsche@cuw.edu> Date: Mon Apr 1 00:58:16 2013 -0500 fix spelling in git.fish Signed-off-by: Greg Dietsche <Gregory.Dietsche@cuw.edu> commit f8f6a1914a8f2f60a14dac532f1d63dd8269f676 Author: Greg Dietsche <Gregory.Dietsche@cuw.edu> Date: Mon Apr 1 00:56:45 2013 -0500 fix spelling in fuser.fish Signed-off-by: Greg Dietsche <Gregory.Dietsche@cuw.edu> commit dcdfd1552dfd360d1ce808706bc401d52cce22ce Author: Greg Dietsche <Gregory.Dietsche@cuw.edu> Date: Mon Apr 1 00:54:58 2013 -0500 fix spelling in effectv.fish Signed-off-by: Greg Dietsche <Gregory.Dietsche@cuw.edu> commit 7b4388364f546b81f0557c500bb6a5207931c3be Author: Greg Dietsche <Gregory.Dietsche@cuw.edu> Date: Mon Apr 1 00:53:45 2013 -0500 fix spelling in du.fish Signed-off-by: Greg Dietsche <Gregory.Dietsche@cuw.edu> commit 0450070e98adae2ebe19806f4fb74386a50de003 Author: Greg Dietsche <Gregory.Dietsche@cuw.edu> Date: Mon Apr 1 00:52:55 2013 -0500 fix spelling in df.fish Signed-off-by: Greg Dietsche <Gregory.Dietsche@cuw.edu> commit 49ae24ae0dbd06c72e6c994f1ea4ca9b385fdda5 Author: Greg Dietsche <Gregory.Dietsche@cuw.edu> Date: Mon Apr 1 00:49:00 2013 -0500 fix spelling in cut.fish Signed-off-by: Greg Dietsche <Gregory.Dietsche@cuw.edu> commit 4eccc923f389e2fc0c498fc63e4bbeeccc177e9a Author: Greg Dietsche <Gregory.Dietsche@cuw.edu> Date: Mon Apr 1 00:47:21 2013 -0500 fix spelling in compare.fish Signed-off-by: Greg Dietsche <Gregory.Dietsche@cuw.edu> commit 8c0cfb91c596ef7a1583877c8f38fab7e867cff2 Author: Greg Dietsche <Gregory.Dietsche@cuw.edu> Date: Mon Apr 1 00:46:46 2013 -0500 fix spelling in chown.fish Signed-off-by: Greg Dietsche <Gregory.Dietsche@cuw.edu> commit 4518b06c3fc8c565038ccbeeb0d2f8aea73e1ee0 Author: Greg Dietsche <Gregory.Dietsche@cuw.edu> Date: Mon Apr 1 00:46:08 2013 -0500 fix spelling in chgrp.fish Signed-off-by: Greg Dietsche <Gregory.Dietsche@cuw.edu> commit a0a4fb3dc271c469482e87a0f9efab4016596f82 Author: Greg Dietsche <Gregory.Dietsche@cuw.edu> Date: Mon Apr 1 00:43:04 2013 -0500 fix spelling in apt-setup.fish Signed-off-by: Greg Dietsche <Gregory.Dietsche@cuw.edu> commit 740e75e5316e73fb03c00bd9b482786d1f387cc5 Author: Greg Dietsche <Gregory.Dietsche@cuw.edu> Date: Mon Apr 1 00:42:25 2013 -0500 fix spelling in apt-rdepends.fish Signed-off-by: Greg Dietsche <Gregory.Dietsche@cuw.edu> commit 7a2727bcb96e58a023d0f8ab807f839e76555375 Author: Greg Dietsche <Gregory.Dietsche@cuw.edu> Date: Mon Apr 1 00:27:27 2013 -0500 fix spelling in fish_complete_pacman.fish Signed-off-by: Greg Dietsche <Gregory.Dietsche@cuw.edu> commit 0e28ff4c1c90bdbf1e1b780d0ab3c2ba04b3a463 Author: Greg Dietsche <Gregory.Dietsche@cuw.edu> Date: Mon Apr 1 00:26:17 2013 -0500 fix spelling in fish_complete_pgrep.fish Signed-off-by: Greg Dietsche <Gregory.Dietsche@cuw.edu> commit 1ca9fad713c460debcd851dfcffa135f3b579561 Author: Greg Dietsche <Gregory.Dietsche@cuw.edu> Date: Mon Apr 1 00:24:13 2013 -0500 fix spelling in trap.fish Signed-off-by: Greg Dietsche <Gregory.Dietsche@cuw.edu> commit deb0c2129d50d627d720cbd549cf8aadc3113243 Author: Greg Dietsche <Gregory.Dietsche@cuw.edu> Date: Mon Apr 1 00:19:00 2013 -0500 fix spelling in fish_not_contain_opt.fish Signed-off-by: Greg Dietsche <Gregory.Dietsche@cuw.edu> commit 8a40bd08b37d5c80041b7beb58fb82d9b0592b5d Author: Greg Dietsche <Gregory.Dietsche@cuw.edu> Date: Mon Apr 1 00:18:16 2013 -0500 fix spelling in fish_make_completion.fish Signed-off-by: Greg Dietsche <Gregory.Dietsche@cuw.edu> commit f1c48dc8236a8eb5ba0e45e985e8dd7eadfb88e5 Author: Greg Dietsche <Gregory.Dietsche@cuw.edu> Date: Mon Apr 1 00:17:09 2013 -0500 fix spelling in fish_gnu_complete.fish Signed-off-by: Greg Dietsche <Gregory.Dietsche@cuw.edu> commit b6813883d9355f8e15917769d46b58cc8fab840d Author: Greg Dietsche <Gregory.Dietsche@cuw.edu> Date: Mon Apr 1 00:16:33 2013 -0500 fix spelling in fish_git_prompt.fish Signed-off-by: Greg Dietsche <Gregory.Dietsche@cuw.edu> commit 97e3e74ddb743061a8e4349bf7895cf98cf9d9b2 Author: Greg Dietsche <Gregory.Dietsche@cuw.edu> Date: Mon Apr 1 00:13:11 2013 -0500 fix spelling in fish_complete_vi.fish Signed-off-by: Greg Dietsche <Gregory.Dietsche@cuw.edu> commit 7c31d5fec8f855fbc3496be7200915a1d2dc4d46 Author: Greg Dietsche <Gregory.Dietsche@cuw.edu> Date: Mon Apr 1 00:10:47 2013 -0500 fix spelling of in fish_complete_tex.fish Signed-off-by: Greg Dietsche <Gregory.Dietsche@cuw.edu> commit 3f06bdb91942c4d0e686d1bb8b5eff1983a91304 Author: Greg Dietsche <Gregory.Dietsche@cuw.edu> Date: Mon Apr 1 00:06:45 2013 -0500 fix spelling in fish_complete_list.fish Signed-off-by: Greg Dietsche <Gregory.Dietsche@cuw.edu> commit 5bfd9ef40547b744c9bbfb4cc6f8a7d880d8f3d6 Author: Greg Dietsche <Gregory.Dietsche@cuw.edu> Date: Mon Apr 1 00:03:14 2013 -0500 fix spelling in fish_complete_atool.fish Signed-off-by: Greg Dietsche <Gregory.Dietsche@cuw.edu> commit b84a43ff0bad5e206a591891b6c7ff9028e14eb5 Author: Greg Dietsche <Gregory.Dietsche@cuw.edu> Date: Sun Mar 31 23:40:28 2013 -0500 fix spelling of protocol in fish_complete_ssh.fish Signed-off-by: Greg Dietsche <Gregory.Dietsche@cuw.edu>
110 lines
5.6 KiB
Fish
110 lines
5.6 KiB
Fish
#completion for vi/vim
|
|
|
|
function __fish_complete_vi -d "Compleletions for vi and its aliases" --argument-names cmd
|
|
set -l is_vim
|
|
if type $cmd > /dev/null
|
|
eval command $cmd --version >/dev/null ^/dev/null; and set -l is_vim vim
|
|
end
|
|
|
|
# vim
|
|
set -l cmds -c $cmd
|
|
if test -n "$is_vim"
|
|
# these don't work
|
|
#complete $cmds -a - --description 'The file to edit is read from stdin. Commands are read from stderr, which should be a tty'
|
|
|
|
# todo
|
|
# +[num] : Position the cursor on line number
|
|
# +/{pat} : Position the cursor on the first occurence of {pat}
|
|
# +{command} : Execute Ex command after the first file has been read
|
|
complete $cmds -s c -r --description 'Execute Ex command after the first file has been read'
|
|
complete $cmds -s S -r --description 'Source file after the first file has been read'
|
|
complete $cmds -l cmd -r --description 'Execute Ex command before loading any vimrc'
|
|
complete $cmds -s d -r --description 'Use device as terminal (Amiga only)'
|
|
complete $cmds -s i -r --description 'Set the viminfo file location'
|
|
complete $cmds -s o -r --description 'Open stacked windows for each file'
|
|
complete $cmds -s O -r --description 'Open side by side windows for each file'
|
|
complete $cmds -s p -r --description 'Open tab pages for each file'
|
|
complete $cmds -s q -r --description 'Start in quickFix mode'
|
|
complete $cmds -s r -r --description 'Use swap files for recovery'
|
|
complete $cmds -s s -r --description 'Source and execute script file'
|
|
complete $cmds -s t -r --description 'Set the cursor to tag'
|
|
complete $cmds -s T -r --description 'Terminal name'
|
|
complete $cmds -s u -r --description 'Use alternative vimrc'
|
|
complete $cmds -s U -r --description 'Use alternative vimrc in GUI mode'
|
|
complete $cmds -s w -r --description 'Record all typed characters'
|
|
complete $cmds -s W -r --description 'Record all typed characters (overwrite file)'
|
|
|
|
complete $cmds -s A --description 'Start in Arabic mode'
|
|
complete $cmds -s b --description 'Start in binary mode'
|
|
complete $cmds -s C --description 'Behave mostly like vi'
|
|
complete $cmds -s d --description 'Start in diff mode'
|
|
complete $cmds -s D --description 'Debugging mode'
|
|
complete $cmds -s e --description 'Start in Ex mode'
|
|
complete $cmds -s E --description 'Start in improved Ex mode'
|
|
complete $cmds -s f --description 'Start in foreground mode'
|
|
complete $cmds -s F --description 'Start in Farsi mode'
|
|
complete $cmds -s g --description 'Start in GUI mode'
|
|
complete $cmds -s h --description 'Print help message and exit'
|
|
complete $cmds -s H --description 'Start in Hebrew mode'
|
|
complete $cmds -s L --description 'List swap files'
|
|
complete $cmds -s l --description 'Start in lisp mode'
|
|
complete $cmds -s m --description 'Disable file modification'
|
|
complete $cmds -s M --description 'Disallow file modification'
|
|
complete $cmds -s N --description 'Reset compatibility mode'
|
|
complete $cmds -s n --description 'Don\'t use swap files'
|
|
complete $cmds -s R --description 'Read only mode'
|
|
complete $cmds -s r --description 'List swap files'
|
|
complete $cmds -s s --description 'Start in silent mode'
|
|
complete $cmds -s V --description 'Start in verbose mode'
|
|
complete $cmds -s v --description 'Start in vi mode'
|
|
complete $cmds -s x --description 'Use encryption when writing files'
|
|
complete $cmds -s X --description 'Don\'t connect to X server'
|
|
complete $cmds -s y --description 'Start in easy mode'
|
|
complete $cmds -s Z --description 'Start in restricted mode'
|
|
|
|
complete $cmds -o nb --description 'Become an editor server for NetBeans'
|
|
|
|
complete $cmds -l no-fork --description 'Start in foreground mode'
|
|
complete $cmds -l echo-wid --description 'Echo the Window ID on stdout (GTK GUI only)'
|
|
complete $cmds -l help --description 'Print help message and exit'
|
|
complete $cmds -l literal --description 'Do not expand wildcards'
|
|
complete $cmds -l noplugin --description 'Skip loading plugins'
|
|
complete $cmds -l remote --description 'Edit files on Vim server'
|
|
complete $cmds -l remote-expr --description 'Evaluate expr on Vim server'
|
|
complete $cmds -l remote-send --description 'Send keys to Vim server'
|
|
complete $cmds -l remote-silent --description 'Edit files on Vim server'
|
|
complete $cmds -l remote-wait --description 'Edit files on Vim server'
|
|
complete $cmds -l remote-wait-silent --description 'Edit files on Vim server'
|
|
complete $cmds -l serverlist --description 'List all Vim servers that can be found'
|
|
complete $cmds -l servername --description 'Set server name'
|
|
complete $cmds -l version --description 'Print version information and exit'
|
|
|
|
complete $cmds -l socketid -r --description 'Run gvim in another window (GTK GUI only)'
|
|
|
|
# plain vi (as bundled with SunOS 5.8)
|
|
else
|
|
|
|
# todo:
|
|
# -wn : Set the default window size to n
|
|
# +command : same as -c command
|
|
|
|
complete $cmds -s s --description 'Suppress all interactive user feedback'
|
|
complete $cmds -s C --description 'Encrypt/decrypt text'
|
|
complete $cmds -s l --description 'Set up for editing LISP programs'
|
|
complete $cmds -s L --description 'List saved file names after crash'
|
|
complete $cmds -s R --description 'Read-only mode'
|
|
complete $cmds -s S --description 'Use linear search for tags if tag file not sorted'
|
|
complete $cmds -s v --description 'Start in display editing state'
|
|
complete $cmds -s V --description 'Verbose mode'
|
|
complete $cmds -s x --description 'Encrypt/decrypt text'
|
|
|
|
complete $cmds -r -s r --description 'Recover file after crash'
|
|
complete $cmds -r -s t --description 'Edit the file containing a tag'
|
|
complete $cmds -r -c t --description 'Begin editing by executing the specified editor command'
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|