Fabian Homborg
e9568069a7
help: Use variable-as-command instead of eval
2018-10-21 15:33:29 +02:00
Fabian Homborg
fc51c156cb
__fish_config_interactive: Use variable-as-command
...
This removes a use of eval, and some duplication.
2018-10-21 15:31:49 +02:00
Fabian Homborg
09f77a355f
__fish_config_interactive: Remove unused $configdir
2018-10-21 15:31:12 +02:00
Fabian Homborg
3b2be9009e
funcsave: Use mkdir -p
...
It's in POSIX, and simplifies stuff.
2018-10-21 15:24:38 +02:00
Mahmoud Al-Qudsi
ec2659c500
fixup! add makensis ( #5242 )
2018-10-16 13:50:42 -05:00
Mahmoud Al-Qudsi
c02bf2548f
Close the completions pager (if it's open) on ctrl+c
...
If you're using the old binding that only clears the commandline and
doesn't preserve its contents and start a new line, you can use
```fish
bind \cc "commandline -f cancel; commandline ''"
```
instead.
Closes #4298 .
2018-10-15 13:34:34 -05:00
Fabian Homborg
d22446f651
Let funced handle empty $EDITOR
...
For some weird reason we only used $editor if it wasn't empty, but
then failed to fail if it was.
This will now print an error and use fish, just like if the $EDITOR
value is invalid in any other way.
Fixes #5257 .
2018-10-15 10:14:59 +02:00
Mahmoud Al-Qudsi
c140b3c724
Add completions for git config
...
This includes dynamic completion of existing keys.
2018-10-14 18:17:23 -05:00
Mahmoud Al-Qudsi
9c6bd8b1b4
Add completions for kitty
terminal
...
This is a wrapper that calls kitty to dynamically provide completions,
as generated by kitty itself, via `kitty + complete setup fish`.
ref: https://sw.kovidgoyal.net/kitty/#fish
2018-10-14 16:32:49 -05:00
Xuanwo
5e77689c5a
completions: Add systemctl set-property support
2018-10-09 16:51:49 +02:00
Fabian Homborg
728dd25665
[completions/git] Add rebase --exec
...
Fixes #5236 .
2018-10-08 15:43:45 +02:00
ridiculousfish
3e4bdf51d4
Teach hg prompt to use pwd -P
...
The hg prompt walks up the directory hierarchy to decide if we are in a
repo subdirectory. Because hg is an external command, it resolves symlinks.
Switch to using pwd -P so hg and fish will have the same view of the hg repo.
Based on comment:
https://github.com/fish-shell/fish-shell/pull/5190#issuecomment-421912360
2018-10-06 17:03:18 -07:00
Fabian Homborg
0aedd47af2
[completions/env] Argparsify
...
This fixes subcommand completions by using argparse to get the
subcommand, just like we did for `sudo`.
Reported by @adregan on gitter
2018-10-02 19:31:30 +02:00
evuez
f3cee81338
Add --color completion for diff
2018-10-02 18:51:14 +02:00
Mahmoud Al-Qudsi
264d8270a7
Emit an error message on literal zero indices
...
Mostly resolves #4862 , though there remains the lingering question of
whether or not to emit a warning to /dev/tty or stderr when a
non-literal-zero index evaluates to zero.
2018-10-01 20:58:26 -05:00
Mahmoud Al-Qudsi
5b696b5fb5
Update rsync completions
...
Closes #4863 .
2018-10-01 20:37:53 -05:00
Fabian Homborg
444f9f8715
Add separation of "preset" bindings
...
This allows for marking certain bindings as part of a preset, which allows us to
- only erase those when switching presets
- go back to the preset binding when erasing a user binding
- only show user customization if requested
- make bare bind statements in config.fish work (!!!11elf!!!)
Fixes #5191 .
Fixes #3699 .
2018-09-30 16:54:56 +02:00
Mahmoud Al-Qudsi
f15dd314e0
Revert "Add hash
function for compatibility with sh/bash"
...
This reverts commit dbd228cc75
.
2018-09-27 17:21:12 -05:00
Mahmoud Al-Qudsi
8ff0e7441f
fixup! Escape command name in __fish_default_command_not_found_handler
2018-09-27 07:56:02 -05:00
Fabian Homborg
3b3361685a
[completions/git] Skip bare repositories
...
Otherwise this would print an unsightly error.
2018-09-27 13:18:26 +02:00
Mahmoud Al-Qudsi
dbd228cc75
Add hash
function for compatibility with sh/bash
2018-09-26 12:43:40 -05:00
Digital
794b448c00
Add completions for openbsd's doas ( #5196 )
...
* Add completions for openbsd's doas
* Update CHANGELOG.md
* Implement requested changes
2018-09-25 12:31:46 +02:00
equal-l2
b4a6daef11
Fix the total page count in the history tab
2018-09-22 11:58:29 +02:00
David Adam
f823611c2e
Move abbr_old to __fish_abbr_old
...
This is an internal function that should not be used except by the migration process.
2018-09-21 09:25:16 +08:00
Mahmoud Al-Qudsi
deb6d477d4
Escape parameters in rustc
completions
...
Closes #5057 .
2018-09-20 18:59:57 -05:00
Mahmoud Al-Qudsi
38ac7693e9
Escape command name in __fish_default_command_not_found_handler
...
Closes #5102
2018-09-19 18:25:47 -05:00
Sam Yu
17643ef12c
Fix zypper completion
...
* complete installed packages only for `zypper rm`
* remove incorrect local file completion
2018-09-16 21:15:32 -07:00
Fabian Homborg
d44c21b580
Document/complete feature flags more
2018-09-16 10:39:15 +02:00
maxried
45a2ff4191
Update status.fish
...
Even though breakpoing sounds funnier, the completion should correctly be breakpoint.
2018-09-14 07:48:22 +08:00
Muttley
0f141b6ccf
pacaur: recognize *.pkg.tar as valid package extension
2018-09-11 13:26:27 +02:00
ridiculousfish
56002abc61
Paginate history in fish_config
2018-09-09 01:01:03 -07:00
ridiculousfish
b9c50e400f
Fix abbreviations in web_config
2018-09-08 21:34:54 -07:00
Tang King Fai
0e6cc13d0d
Update cargo completion ( #5172 )
...
* Update cargo completion
* Show sub-command's description for completion
2018-09-07 15:29:48 +02:00
Mo Zhou
add24f96a9
completions: ninja: "ninja -f" should be followed by a *.ninja file.
2018-09-07 08:00:37 +00:00
Curtis Jiang
06e5194092
add OpenWrt and opkg support
...
Signed-off-by: Curtis Jiang <jqqqqqqqqqq@qq.com>
2018-09-04 01:47:30 -07:00
Vicente Reyes
3e9453840f
complete stack built binaries
2018-08-26 17:00:04 -07:00
Chris
1d68b52cbc
Add till/repeat/reverse jump bindings
...
- Add support for:
- Jumping to the character before a target.
- Repeating the previous jump (same direction, same precision).
- Repeating the previous jump in the reverse order.
- Enhance vi bindings.
2018-08-18 14:42:29 -07:00
Fabian Homborg
7606bfc2e5
Merge pull request #5145 from antonv6/hg-completion
...
[Ready] Update Mercurial completion
2018-08-17 16:34:35 +02:00
Mahmoud Al-Qudsi
e8a35bfaa8
Prevent errors in __fish_describe_command when apropos isn't installed
...
__fish_describe_command now bails early if `type -q apropos` returns a
non-zero exit code.
2018-08-16 13:20:04 -05:00
Anton Shestakov
1e58e00734
hg completion: complete directories for --cwd
2018-08-16 19:26:29 +08:00
Anton Shestakov
b3a00c5389
hg completion: add :forcedump and :tagmerge merge tools
2018-08-16 19:25:16 +08:00
Anton Shestakov
8aef4330f0
hg completion: complete hg convert, email
2018-08-15 14:13:16 +08:00
Anton Shestakov
af4da66515
hg completion: do a pass over mq
2018-08-15 12:21:16 +08:00
Anton Shestakov
fb6b4b9ae5
hg completion: revert can restore deleted files too
2018-08-15 12:20:12 +08:00
Anton Shestakov
cdf39ed660
hg completion: complete hg files, rebase, shelve, unshelve
2018-08-15 12:15:07 +08:00
Anton Shestakov
6223833130
hg completion: update command descriptions, add more
2018-08-15 12:14:11 +08:00
Anton Shestakov
a175aaa18a
hg completion: new flags
2018-08-14 23:51:06 +08:00
Anton Shestakov
afff92c4b1
hg completion: update descriptions
2018-08-14 23:46:51 +08:00
Anton Shestakov
0ffbb657df
hg completion: remove --style (deprecated for 4 years)
...
It still works, but is just an alias for -T/--template.
2018-08-14 23:42:16 +08:00
George Christou
b39651f1ad
completions: [git] Silence various errors outside repo
2018-08-14 17:12:43 +02:00