David Adam
ff8f26e65a
funced: suggest saving functions when an editor is used
2021-08-16 21:45:23 +08:00
David Adam
8dd4c67db1
funcsave: edit the whole file containing a function
...
Many functions ship in files with helper functions, and it is useful to
edit those too.
Closes #391 .
2021-08-16 21:45:22 +08:00
David Adam
52eff27239
funced: don't source or save unmodified files
...
If funced is just used to inspect a function, there's no need to write
it to storage or to reload it.
2021-08-16 21:44:43 +08:00
David Adam
911269c4a9
funcsave: avoid the edited function's path being a temporary file
...
As functions know where they are loaded from now, there is no point in
them being marked as loaded from a temporary file that has been removed.
Source the function via a redirect instead.
2021-08-16 21:44:43 +08:00
mtoohey31
703a717660
completion: support --no
prefixes for mpv flag options
2021-08-14 10:56:23 +02:00
ridiculousfish
b0b6a585a8
Support Apple_Terminal in fish_vi_cursor
...
This enables it unconditionally, as tests show that the cursor escapes
are ignored before 10.12.
Fixes #8167
2021-08-10 13:23:08 -07:00
Johannes Altmanninger
7b55c0edb4
completions/git: finish completions for git bisect
2021-08-10 21:01:39 +02:00
Johannes Altmanninger
96e665f9ec
__fish_complete_subcommand: (re)move confusing comment
2021-08-10 21:01:39 +02:00
Fabian Homborg
6c1ec98e92
prompt_pwd: full-dirs set to 0 means not even last component is safe
...
Alternative is to print an error.
2021-08-09 17:42:00 +02:00
Fabian Homborg
af2952dd2f
Allow passing directories to prompt_pwd
...
This allows us to test it without cd-ing about the place.
2021-08-09 17:42:00 +02:00
Fabian Homborg
7a8feb4656
prompt_pwd: Allow keeping components full length
...
And allow passing the parameters as options.
2021-08-09 17:42:00 +02:00
Andrew Schulman
afef67b4e8
Fix dirs returns false when $dirstack is empty
2021-08-09 12:43:03 +02:00
exploide
60a9dcbf05
updated ping completions
...
support for ping from iputils (version 20210202)
support for ping from inetutils (version 2.1)
support for ping from busybox (version 1.33.1)
support for ping from FreeBSD and macOS (by @juntuu)
2021-08-06 17:08:50 +02:00
Fabian Homborg
3ed49304f2
Completions
2021-08-04 21:09:47 +02:00
Fabian Homborg
fcbf303e05
Only do the macOS apropos thing if makewhatis is available
...
This won't work without it, and happens to be broken on jailbroken
iOS.
Fixes #8205 .
2021-08-04 18:55:01 +02:00
Kid
c7c67755d3
Add --function
to set
completion ( #8202 )
...
* Add `--function` to `set` completion
* Resolve review
* Revert other changes
2021-08-04 08:49:51 +02:00
Johannes Altmanninger
1b20e75f19
Run fish_indent on share/**.fish
2021-08-01 18:59:45 +02:00
Branch Vincent
bb10cdbd77
add missing git commit
completions
2021-07-30 19:39:53 -07:00
Sam Yu
ac6507776f
Add zypper subcommands completion ( #8183 )
...
* Add zypper subcommands completion
rename functions to avoid confusion
* Revert partial changes
2021-07-30 18:24:32 +02:00
exploide
ac81d370cd
completion nmap: suppress warning when local scripts folder exists
2021-07-30 17:41:55 +02:00
Kevin Konrad
413fd2fc03
extract argcomplete completion mechanism into its own function
2021-07-28 18:10:59 +02:00
Kevin Konrad
336de2d9fa
add completion for qmk
2021-07-28 18:10:59 +02:00
YAKSH BARIYA
0b8b535187
Add completions for gping
( #8181 )
2021-07-28 17:53:44 +02:00
Branch Vincent
d8465e0a86
document --no-config
2021-07-27 23:00:23 +02:00
Johannes Altmanninger
6c0af841e2
completions/set: fix quoting error
2021-07-23 22:02:01 +02:00
Johannes Altmanninger
72fd328ad2
fish_clipboard_{copy,paste}: only use xsel/xclip if $DISPLAY is set
...
Ubuntu's fish package on WSL 1 has xsel as recommended dependency,
even though there is no X server available. This change makes us
use Windows' native clipboard even when xsel is installed.
2021-07-23 20:55:07 +02:00
Fabian Homborg
7167ba6e08
Work around Terminal.app's awkward alt-left/right sequences
...
Just do the more involved thing.
Blergh.
Fixes #2330 .
2021-07-23 19:38:43 +02:00
Aniruddh Agarwal
0445126c2e
Undunder __fish_is_nth_token
...
We keep __fish_is_nth_token for compatibility and edit the
implementations of __fish_is_nth_token, __fish_is_first_token and
__fish_is_token_n to use fish_is_nth_token
2021-07-23 17:25:50 +02:00
Fabian Homborg
c35ffc58fc
Merge pull request #8134 from thunder-coding/complete-more-git-commands
...
Add missing completions for some git commands
2021-07-23 08:01:38 +02:00
Yaksh Bariya
e9a16ed7b5
Fix typos
2021-07-23 06:55:07 +05:30
Yaksh Bariya
692c6ae118
Add completions for git-sizer
2021-07-22 19:29:05 +02:00
Fabian Homborg
11da6db009
Cleanup of a comment
2021-07-22 19:19:49 +02:00
Yaksh Bariya
29fc74bc6a
Remove -F
supplied to complete
...
Using `complete -F -c git -n __fish_git_needs_subcommand -a $command -d
$description` causes file completions to be forced on entire git command
which is not a desired result. Morever without the `-F` flag file
completions work just as expected and is useless addition
2021-07-22 17:06:59 +05:30
Yaksh Bariya
6f52c017ba
Resolve all conversations
2021-07-22 13:26:38 +05:30
Yaksh Bariya
54476d583b
Add flag completions for git mv
2021-07-22 13:25:12 +05:30
Yaksh Bariya
9d0d0b81fd
Add completions for git apply
2021-07-22 13:25:12 +05:30
Yaksh Bariya
162c4ac789
Add completions for git mailsplit
2021-07-22 13:25:12 +05:30
Yaksh Bariya
4c5f41531d
Add completions for git am
2021-07-22 13:25:12 +05:30
Yaksh Bariya
2e34852ded
Add completions for git mailinfo
2021-07-22 13:25:12 +05:30
Yaksh Bariya
3f5f722e7a
Add completions for git stripspace
2021-07-22 13:25:11 +05:30
Yaksh Bariya
f976144b27
Add completions for git notes
2021-07-22 13:25:11 +05:30
Yaksh Bariya
1344b638d2
Add completions for git maintenance
2021-07-22 13:25:11 +05:30
Yaksh Bariya
55886943c1
Add missing completions for git daemon
2021-07-22 13:25:06 +05:30
Kevin F. Konrad
869c42d72a
Add completion for azure cli (az) ( #8141 )
...
* add completion for azure cli (az)
* alter az.fish to match faho's requests
Co-authored-by: Kevin Konrad <kevin.konrad@unicepta.com>
2021-07-21 17:57:59 +02:00
Fabian Homborg
405a03bfae
fish_config: Pass filenames as arguments
...
This injected filenames into fish script, which could inject things
that looked like fish script.
E.g. create a file called `~/.config/fish/themes/"; rm -rf ~/*"`.
Note that the prompts are all shipped by us, but the themes can
technically be added by the user, and they might not be dilligent in
what filenames they allow.
2021-07-16 17:30:35 +02:00
Fabian Homborg
900e4a232e
fish_config: Error for choose/save with too many/few args
2021-07-14 19:48:33 +02:00
Fabian Homborg
768afadcad
Also read home theme directory in webconfig
2021-07-14 18:56:19 +02:00
Fabian Homborg
8223e6f23e
fish_config: Add CLI-based theme selector
...
`fish_config theme`:
- `list` to list all available themes (files in the two theme
directories - either the web_config/themes one or
~/.config/fish/themes!)
- `show` to show select (or all) themes right in the terminal - this
starts another fish that reads the theme file and prints the sample
text, manually colored
- `choose` to load a theme *now*, setting the variables globally
- `save` to load a theme and save the variables universally
- `dump` to write the current theme in .theme format (to stdout)
- `demo` to display the current theme
2021-07-14 18:56:19 +02:00
Fabian Homborg
fd35dc2aa1
completions/git: Describe more "log" options
...
And do this by reusing other entries - mostly range-diff's.
2021-07-14 18:24:08 +02:00
Fabian Homborg
ee3a1f24c3
completions/gpg: Don't require an email address
...
Fixes #8079
2021-07-14 17:30:51 +02:00