Fabian Homborg
9f7334deef
Add completion for systemd-analyze
2015-12-03 12:52:59 +01:00
mr.Shu
1a5d0fc47f
git: Improve completion for git remote
...
* Make sure that the `git remote` subcommands are not repeatedly
suggested (that is do not suggest a subcommand if there already is one).
* Add both long and short options to `git remote` subcommands where
appropriate.
Signed-off-by: mr.Shu <mr@shu.io>
2015-11-29 22:14:11 +01:00
Fabian Homborg
17b6936f53
Merge pull request #2573 from mrshu/mrshu/add-missing-git-remote-subcommands
...
git: Add missing remote subcommands completion
2015-11-28 14:41:37 +01:00
Fabian Homborg
c5bcc4567e
Merge pull request #2572 from lordlycastle/master
...
Added completions for cat, cp, mktemp, stat, touch for OS X.
2015-11-28 14:41:03 +01:00
mr.Shu
7b3d93f4a1
git: Add missing remote subcommands completion
...
* Add completion for missing `git remote` subcommands.
* Should fix #2567
Signed-off-by: mr.Shu <mr@shu.io>
2015-11-28 03:24:59 +01:00
lordlycastle
3868203c76
Added completions for cat, cp, mktemp, stat, touch for OS X.
2015-11-28 00:35:26 +00:00
Daniel Matz
b7f13b4685
Complete bg and fg with job PIDs.
2015-11-27 16:07:16 -08:00
Daniel Matz
c2c4fbf206
Add a function to complete job PIDs.
2015-11-27 16:07:16 -08:00
Fabian Homborg
53fc9a4002
Remove circular dependency in fallback seq
...
This was subtle because `type` invoked seq.
Fixes #2570
2015-11-27 19:34:27 +01:00
Fabian Homborg
a8a9ac0dae
Add completion for OSX rm
...
As always, this not only doesn't support longopts, but also has some
options that GNU rm doesn't - in this case, an undelete function.
2015-11-27 11:28:41 +01:00
Daniel Matz
3b53abecd0
Update hg completion
...
This does a number of things:
- Removing trailing space from suggested repos for hg.
- Use the string builtin for hg completions.
- Add more internal merge tools to hg completion.
- Enable completions for abbreviated hg commands.
- Stop completing a deprecated hg branches option.
- Properly match the hg subcommand when preceeded by global switches.
- Stop completing deprecated hg glog.
- Complete hg config instead of showconfig.
- Properly complete when global switches are before the hg command.
- Properly handle the repository switch for hg completions.
- Properly handle the hg global switch cwd.
2015-11-23 19:39:58 +01:00
Fabian Homborg
3f12f75853
Add completions for OSX which
2015-11-23 13:37:53 +01:00
Fabian Homborg
917c727619
Add more sudo options
2015-11-23 13:32:29 +01:00
Fabian Homborg
6336288da1
Support the OSX versions of head/tail
...
See #2537 .
These were written from the online versions of the manpages.
2015-11-19 21:32:21 +01:00
Fabian Homborg
3e0ff6db2a
math: Join lines manually
...
This is an issue with 15-year old versions of bc that don't support BC_LINE_LENGTH.
Closes #2548
2015-11-19 12:04:21 +01:00
Eugene Sharygin
5db811253e
psub: add -s, --suffix
2015-11-14 13:15:30 +01:00
Fabian Homborg
e31a93040e
Add completion for string
...
A bit simplistic since we can't complete e.g. regexes properly, but it
does the job.
Fixes #2543
2015-11-12 15:08:47 +01:00
ridiculousfish
e50d104399
Remove duplicate \cw binding in default key bindings
2015-11-08 23:52:59 -08:00
Alexander Hedges
32d54e37f7
Use unused cleanup_autogenerated_file
2015-11-08 12:19:15 -08:00
Alexander Hedges
2bbad22248
Remove autogenerated files before generating the new ones
...
Currently if there is a conflict with two manpages having the same
name, one completion will override the other. But if one can be parsed
and the other can't the one with parsed results will always have a
higher priority.
2015-11-08 12:19:15 -08:00
Alexander Hedges
22493c9df8
Guard against files that don't end in .[1...9]
...
It seems smart to only let files be parsed that are clearly
manpage files. Other files wouldn't be openend by man so
I think it is safe to guess that only these files are man
pages.
2015-11-08 12:19:15 -08:00
Alexander Hedges
8d97a85834
Ignore references to builtin on the mac
...
On my system (OS-X 10.11) references to builtin are denoted by:
".so man1/builtin.1". So you also need to check against that.
2015-11-08 12:19:15 -08:00
Fabian Homborg
c9577394eb
vi-mode: Inherit \cf and \cb bindings as well
...
This makes them {forward,backward}-char instead of -word, which means
they accept suggestions _fully_.
Fixes #2255
2015-11-06 10:25:27 +01:00
maxried
0918ad6cee
Improve apt-get completion
...
Added apt-get changelog sub-command completion.
2015-11-01 12:30:17 +01:00
maxried
1055864438
Update fish_default_key_bindings.fish
...
fish_default_key_bindings.fish comments were wrong. Corrected comment about pagination.
2015-10-29 07:51:17 +01:00
Fabian Homborg
be0d9d093c
vi-mode: Make \cb do backward-word again
...
This is mentioned in the documentation, so keep it for now.
2015-10-28 13:20:23 +01:00
Fabian Homborg
bb491742ea
vi: Bind \cx to end-of-line in insert mode
...
This will also accept any autosuggestion completely.
2015-10-28 13:18:27 +01:00
Bheesham Persaud
46fbfaaa83
Add cargo and rustc completion.
...
rustc.fish makes heavy use of the `string` commands.
2015-10-26 21:39:16 -04:00
Gary Peck
09bd938e25
Add ability to customize the amount of path shortening in prompt_pwd
...
Allows the length of each shortened path component to be customized by setting the `fish_prompt_pwd_dir_length` variable to the number of characters to include (plus a leading dot because that's special). Maintains the default behavior of shortening path components to just one character. You can also set `fish_prompt_pwd_dir_length` to an empty or invalid value or 0 to disable shortening completely.
2015-10-26 13:11:13 +01:00
Fabian Homborg
3e7dfd7f5e
Switch useradd and chsh to string
2015-10-21 12:38:45 +02:00
David Adam
f21d826850
fish_complete_subcommand: shadow scope to inherit e.g. $PATH
...
Closes : #2141 .
2015-10-21 15:38:20 +08:00
Jan Ernsting
8e3e286577
Update mix completion
...
Among others `mix escriptize` has not been supported since July 2014:
https://github.com/elixir-lang/elixir/issues/2468
Also explain what mix is.
2015-10-20 17:10:41 +02:00
Fabian Homborg
f4b4e5b41f
git: Complete subcommands for git submodule foreach
2015-10-20 15:49:45 +02:00
Fabian Homborg
4a05d56337
git: Disable submodule subcommand completion if one is already given
2015-10-20 15:49:22 +02:00
Fabian Homborg
73708061fc
Fix git submodule completions
...
Fixes #2494
2015-10-20 15:42:48 +02:00
Fabian Homborg
df3da55602
git completion: Allow branches with "/" in them as unique remote branches
2015-10-16 17:15:37 +02:00
David Adam
b776327b9d
Revert "prompts: more concise way of getting the hostname."
...
This reverts commit 233c443694
.
See discussion in https://github.com/fish-shell/fish-shell/pull/2489
2015-10-16 07:01:12 +08:00
Michael Fogleman
233c443694
prompts: more concise way of getting the hostname.
2015-10-15 11:59:39 +08:00
Fabian Homborg
35bbc1d7b7
vi: Make \cf do forward-word again in insert mode
2015-10-14 18:34:58 +02:00
Fabian Homborg
4e5e04bfda
vi: Readd \cx binding
2015-10-14 18:31:45 +02:00
Fabian Homborg
c0e8ad6f1f
Make vi bindings inherit the defaults
...
This reduces code duplication and adds some previously unavailable
bindings that don't quite _violate_ the vi-principle (like
prevd-or-backward-word on alt-left) and matches other "impure" bindings
like \cf for forward-word (a quite emacs-ish binding) we already have.
Fixes #2412
Fixes #2472
Fixes #2255
2015-10-13 21:08:55 +02:00
buo
3472a39d07
Add BSD specific arguments for tr command completion
2015-10-13 15:52:14 +02:00
Fabian Homborg
9865a8c807
Also send konsole cursor sequence for iTerm2
...
Fixes #1403
2015-10-13 15:36:55 +02:00
Matt Steedman
35e769d494
Make fish_vi_cursor check $TERM or use argument
...
Fixes #2475
2015-10-13 15:33:45 +02:00
Fabian Homborg
54f215294f
export: Fix replacing
...
Also run it through fish_indent
2015-10-12 11:35:45 +02:00
Fabian Homborg
98b33d7b6b
Fix pushd completions in the -n case
2015-10-09 20:02:28 +02:00
Fabian Homborg
86471ac21f
Remove OSX/Cygwin special cases from prompt_pwd
...
For cygwin, you can't `cd C:`, so a prompt of "C:/Something" is
misleading.
For OSX, we dereference symlinks elsewhere
This also simplifies prompt_pwd quite a bit.
2015-10-09 17:45:45 +02:00
David Adam
57e22e87c2
functions/man.fish: add fish into MANPATH even if it is already set
...
Closes #2443 .
2015-10-09 21:01:59 +08: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