Fabian Boehm
bba15c6d14
completions/csvlens: Fix missing option
2025-01-27 17:51:35 +01:00
Fabian Boehm
2b2f824b94
completions/git: Handle huge repositories for "add" better
...
`git add` may have to go through literal megabytes of file information
because of tons of untracked files.
So, if the repository is set to not show untracked files (because it's
too slow for the prompt), let's fall back on regular file completions.
(the alternative is to go back to `while read`, but that takes much
longer in repositories of a sensible size)
Fixes #11095
2025-01-26 21:41:36 +01:00
Mahmoud Al-Qudsi
d69a9296a6
completions/llm: Complete model alias target
2025-01-25 12:50:03 -06:00
Johannes Altmanninger
92bd366c1b
Back out "Allow if/then/fi, while/do/done and for/do/done"
...
This backs out commit e32572e4e6
.
2025-01-19 18:57:13 +01:00
Fabian Boehm
98a96f5b58
Revert "Swap alt-{left,right,backspace,delete} with ctrl-* on macOS"
...
This reverts commit ebdc3a0393
.
Not discussed, includes a new thing that queries the terminal for the client OS
when what is really needed is just a `uname` - which would also work on Terminal.app.
2025-01-19 18:52:10 +01:00
Johannes Altmanninger
e32572e4e6
Allow if/then/fi, while/do/done and for/do/done
2025-01-19 18:29:07 +01:00
Johannes Altmanninger
ebdc3a0393
Swap alt-{left,right,backspace,delete} with ctrl-* on macOS
...
See https://github.com/fish-shell/fish-shell/issues/ 10926
2025-01-19 18:29:07 +01:00
Johannes Altmanninger
6b5ad163d3
Fix double expansion of tokenized command line
...
Commit 798527d79a
(completions: fix double evaluation of tokenized
commandline, 2024-01-06) fixed some completions such as the "watchexec"
ones by adding "string escape" here:
set argv (commandline -opc | string escape) (commandline -ct)
This fixed double evaluation when we later call `complete -C"$argv"`.
Unfortunately -- searching for "complete -C" and
"__fish_complete_subcommand" -- it seems like that commit missed some
completions such as sudo. Fix them the same way.
Alternatively, we could defer expansion of those arguments (via
--tokens-raw), since the recursive call to completion will expand
them anyway, and we don't really need to know their value.
But there are (contrived) examples where we do want to expand first,
to correctly figure out where the subcommand starts:
sudo {-u,someuser} make ins
By definition, the tokens returned by `commandline -opc` do not
contain the token at cursor (which we're currently completing).
So the expansion should not hurt us. There is an edge case where
cartesian product expansion would produce too many results, and we
pass on the unexpanded input. In that case the extra escaping is very
unlikely to have negative effects.
Fixes # 11041
Closes # 11067
Co-authored-by: kerty <g.kabakov@inbox.ru>
2025-01-19 18:29:07 +01:00
Ilya Grigoriev
bcc69da569
tmux completions: complete shell commands
2025-01-19 10:49:07 +01:00
Dmitry Gerasimov
dfa77e6c19
completions/git: show custom aliases for --pretty option
...
Custom formats for --pretty/--format option can only be written in [pretty]
section, thus only this section is searched.
[ja: add ? to the regex]
Closes #11065
2025-01-19 10:48:01 +01:00
Dmitry Gerasimov
9752b83e65
completions/git: update supported git format options
...
--format=reference is supported since git 2.25
--format=mboxrd is supported since git 2.27
2025-01-19 10:48:01 +01:00
Ilya Grigoriev
4208798585
completions: add unbuffer
completions
...
unbuffer is sometimes bundled with `expect` (which fish already ships
completions for), and sometimes is bundled separately. It's often
recommended for forcing colors to have color output.
https://manpages.debian.org/bookworm/expect/unbuffer.1.en.html
Ads for unbuffer:
https://wiki.archlinux.org/title/Color_output_in_console#Reading_from_stdin
https://jvns.ca/blog/2024/10/01/terminal-colours/
2025-01-19 10:46:55 +01:00
Johannes Altmanninger
c12f853db2
Reformat share/{completions,functions}
2025-01-15 10:50:04 +01:00
Mahmoud Al-Qudsi
f8b245eb31
completions/zfs: Add encryption-related completions
make test / ubuntu (push) Waiting to run
make test / ubuntu-32bit-static-pcre2 (push) Waiting to run
make test / ubuntu-asan (push) Waiting to run
make test / macos (push) Waiting to run
Rust checks / rustfmt (push) Waiting to run
Rust checks / clippy (push) Waiting to run
2025-01-11 10:44:40 -06:00
Daniel Fleischer
29c45100fa
Add lazygit completions ( #11019 )
make test / ubuntu (push) Waiting to run
make test / ubuntu-32bit-static-pcre2 (push) Waiting to run
make test / ubuntu-asan (push) Waiting to run
make test / macos (push) Waiting to run
Rust checks / rustfmt (push) Waiting to run
Rust checks / clippy (push) Waiting to run
2025-01-10 21:21:54 -06:00
Mahmoud Al-Qudsi
0fcb2f7590
completions/cargo: Add --ignore-rust-version
...
New to 1.85; bypasses MSRV checks specified by `resolver = 3` or in
.cargo/config.toml
2025-01-09 17:06:31 -06:00
Klaus Hipp
5c25d3c3b1
Fix completion typos
2025-01-09 16:51:39 +01:00
César Sagaert
00c7baf68c
DNF5 completion support ( #11035 )
...
* dnf5 completions
* address comments
2025-01-09 16:35:46 +01:00
Branch Vincent
7970ca55af
completions: add fish-lsp
( #11017 )
2025-01-08 11:25:36 -06:00
Klaus Hipp
4def0ac616
Revert "Fix typo in npm completions: isntall -> install" ( #11014 )
...
make test / ubuntu (push) Waiting to run
make test / ubuntu-32bit-static-pcre2 (push) Waiting to run
make test / ubuntu-asan (push) Waiting to run
make test / macos (push) Waiting to run
Rust checks / rustfmt (push) Waiting to run
Rust checks / clippy (push) Waiting to run
* Revert "Fix typo in npm completions: isntall -> install"
This reverts commit f4b01bb638
.
* Add comments about typos in `npm` completions
2025-01-07 12:32:16 -06:00
Steve Walker
b574a5e4f6
fix python completion #10943
2025-01-07 23:30:27 +08:00
Klaus Hipp
ea4e4a4279
Fix completion typos for apt-build
, htop
and wget
( #11016 )
2025-01-06 19:39:47 -06:00
Johannes Altmanninger
109ef88831
Add menu and printscreen keys
...
These aren't typically used in the terminal but they are present on
many keyboards.
Also reorganize the named key constants a bit. Between F500 and
ENCODE_DIRECT_BASE (F600) we have space for 256 named keys.
2025-01-06 05:43:22 +01:00
cornmander
d842a6560e
Add completions for Google Cloud commands. ( #11005 )
...
The `gcloud` and `gsutil` Google Cloud commands use argcomplete, so integrating them is easy with the `__fish_argcomplete_complete` function.
2025-01-04 19:45:05 -06:00
Lzu Tao
7eb254f2ba
Add completion for gem-fetch
make test / ubuntu (push) Waiting to run
make test / ubuntu-32bit-static-pcre2 (push) Waiting to run
make test / ubuntu-asan (push) Waiting to run
make test / macos (push) Waiting to run
Rust checks / rustfmt (push) Waiting to run
Rust checks / clippy (push) Waiting to run
2025-01-04 21:26:03 +08:00
idealseal
2e12a2b6c4
feat(comp): Update completions for resolvectl
2025-01-04 20:42:31 +08:00
idealseal
a780e4da15
feat(comp): Update completion for md5sum
2025-01-04 20:39:33 +08:00
Thayne McCombs
33dd823f45
fix[completions]: Add set-timeout to bootctl
2025-01-04 20:15:53 +08:00
Johannes Altmanninger
870a8f77a0
completions/scp: replace version detection
...
Version detection seems unreliable (see
https://github.com/fish-shell/fish-shell/issues/10445#issuecomment-2566232705
) so let's test for the actual feature. On modern versions,"scp -O"
means "Use the legacy SCP protocol for file transfers instead",
so presence of this feature indicates we are good.
2025-01-03 12:57:00 +01:00
Alexei Mikhailov
9b26fff278
completions/exercism: use generate script
...
make test / ubuntu (push) Waiting to run
make test / ubuntu-32bit-static-pcre2 (push) Waiting to run
make test / ubuntu-asan (push) Waiting to run
make test / macos (push) Waiting to run
Rust checks / rustfmt (push) Waiting to run
Rust checks / clippy (push) Waiting to run
Exercism ships with it's own completions and a generation script, so let's use
that one instead.
2025-01-02 21:57:17 +08:00
Klaus Hipp
2b46d97c68
Update code
completions
make test / ubuntu (push) Waiting to run
make test / ubuntu-32bit-static-pcre2 (push) Waiting to run
make test / ubuntu-asan (push) Waiting to run
make test / macos (push) Waiting to run
Rust checks / rustfmt (push) Waiting to run
Rust checks / clippy (push) Waiting to run
2025-01-02 14:11:24 +08:00
Johannes Altmanninger
6043644f52
completions/status: add buildinfo
2024-12-30 10:50:01 +01:00
Ilya Grigoriev
b1064ac3a0
completions/tmux: add skeleton "Windows and Panes" bindings ( #10854 )
...
These are quite mechanical, but include all the commands (as of tmux
3.5a) in the "Windows and Panes" section of `man tmux`. For these
commands, I included the target-pane/session/client/window flags and the
-F formatstring flags (but not the less generic flags specific to
individual commands).
Nice completion is implemented for those flags where the helper
functions were already implemented previously.
After this, tmux pane<tab> will hopefully be useful.
A few TODOs mention low-hanging fruit for somebody who better
understands fish's `complete` command syntax (or a future me).
Another piece of low-hanging fruit would be completion for all the
target-window flags. This PR merely lists them.
2024-12-29 15:37:21 +01:00
EmilyGraceSeville7cf
1bda6043c8
feat(completion) support batsh command
2024-12-29 15:36:00 +01:00
EmilyGraceSeville7cf
d8d5913159
feat(completion): support folderify command
2024-12-29 15:35:25 +01:00
Benjamin Kellermann
2ac1523e54
add completion for btrbk ( #10752 )
...
make test / ubuntu (push) Waiting to run
make test / ubuntu-32bit-static-pcre2 (push) Waiting to run
make test / ubuntu-asan (push) Waiting to run
make test / macos (push) Waiting to run
Rust checks / rustfmt (push) Waiting to run
Rust checks / clippy (push) Waiting to run
* add completion for btrbk
completions for btrbk https://github.com/digint/btrbk/
* change indent + spaces
2024-12-29 15:33:29 +01:00
Dmitry Gerasimov
c473aa60a7
completions/dnf: Fix completions for DNF5 ( #9862 )
...
make test / ubuntu (push) Waiting to run
make test / ubuntu-32bit-static-pcre2 (push) Waiting to run
make test / ubuntu-asan (push) Waiting to run
make test / macos (push) Waiting to run
Rust checks / rustfmt (push) Waiting to run
Rust checks / clippy (push) Waiting to run
Since DNF5 there's no implicit \n in repoquery output. For DNF4 this change
leaves blank lines in the output, but they are ignored anyway.
2024-12-26 12:01:49 -08:00
Mahmoud Al-Qudsi
46072e0fd6
completions/llm: Add completions for all subcommands
2024-12-23 13:50:10 -06:00
Mahmoud Al-Qudsi
c09a9246a1
completions/llm: Fix broken completion
2024-12-23 13:47:19 -06:00
Johannes Altmanninger
7e5af914be
Remove interactive-only completion hacks
...
I don't think these characters cause problems in filenames?
2024-12-23 08:40:02 +01:00
David Adam
541f8b47bf
Revert "Add completions for dust"
...
make test / ubuntu (push) Has been cancelled
Rust checks / clippy (push) Has been cancelled
make test / ubuntu-asan (push) Has been cancelled
make test / macos (push) Has been cancelled
make test / ubuntu-32bit-static-pcre2 (push) Has been cancelled
Rust checks / rustfmt (push) Has been cancelled
This reverts commit 27c7578760
.
dust generates its own completions (which are shipped in the wrong spot
in the Debian packages, but which are also more up-to-date).
Closes #10922 .
2024-12-19 19:49:01 +08:00
metamuffin
9abec243a4
Completions for mksquashfs
( #10909 )
2024-12-18 10:36:30 -06:00
Ilya Grigoriev
7162822486
rclone.fish: assume a recent version if the version cannot be parsed
...
The version of rclone is set during compilation and could be any crazy string depending on the packager, whether it's a dev build, etc. If it cannot be parsed, let's assume a recent version.
Follows up on cc8fa0f7
2024-12-18 15:31:51 +01:00
Klaus Hipp
25534bf657
Add tex-fmt
completions
make test / ubuntu (push) Waiting to run
make test / ubuntu-32bit-static-pcre2 (push) Waiting to run
make test / ubuntu-asan (push) Waiting to run
make test / macos (push) Waiting to run
Rust checks / rustfmt (push) Waiting to run
Rust checks / clippy (push) Waiting to run
2024-12-18 02:21:57 +08:00
Klaus Hipp
67fa71a94d
Update zed
completions ( #10907 )
...
make test / ubuntu (push) Waiting to run
make test / ubuntu-32bit-static-pcre2 (push) Waiting to run
make test / ubuntu-asan (push) Waiting to run
make test / macos (push) Waiting to run
Rust checks / rustfmt (push) Waiting to run
Rust checks / clippy (push) Waiting to run
Add uninstall option.
2024-12-16 19:42:57 -06:00
Fabian Boehm
cc8fa0f780
completions/rclone: Make version check more lenient
...
This has been observed to be "rclone 1.68.2" instead of "rclone
v1.68.2", missing the "v".
2024-12-14 11:20:29 +01:00
Fabian Boehm
99b5e6e0e7
completions/cargo: Complete packages to uninstall
make test / ubuntu (push) Waiting to run
make test / ubuntu-32bit-static-pcre2 (push) Waiting to run
make test / ubuntu-asan (push) Waiting to run
make test / macos (push) Waiting to run
Rust checks / rustfmt (push) Waiting to run
Rust checks / clippy (push) Waiting to run
2024-12-08 09:13:20 +01:00
Johannes Altmanninger
3ed031c149
Update Kakoune completions
make test / ubuntu (push) Has been cancelled
make test / ubuntu-32bit-static-pcre2 (push) Has been cancelled
make test / ubuntu-asan (push) Has been cancelled
make test / macos (push) Has been cancelled
Rust checks / rustfmt (push) Has been cancelled
Rust checks / clippy (push) Has been cancelled
2024-11-27 08:44:36 +01:00
Kid
31b15405e9
Add completion for path basename -E/--no-extension
( #10863 )
2024-11-20 15:06:53 -06:00
Fabian Boehm
7a667b4f6d
Add basic completions for firejail
...
These are pretty basic, but get us roughly up to the level of the
official completions (that are also incomplete and offer disabled
options).
Fixes #10858
2024-11-18 16:16:07 +01:00