LawAbidingCactus
21a6a192ae
refactor gpg.fish completions
...
refactor gpg completions into functions
comment changes; improve gpg version detection
[ci skip]
2019-10-29 19:07:35 +01:00
Johannes Altmanninger
5ce4cb66d3
fix stale doc
...
[ci skip]
2019-10-28 18:36:22 +01:00
Johannes Altmanninger
97d031e20c
reformat
2019-10-28 18:36:07 +01:00
Johannes Altmanninger
61486954bc
Use a pager to view long outputs of builtin --help
...
Every builtin or function shipped with fish supports flag -h or --help to
print a slightly condensed version of its manpage.
Some of those help messages are longer than a typical screen;
this commit pipes the help to a pager to make it easier to read.
As in other places in fish we assume that either $PAGER or "less" is a
valid pager and use that.
In three places (error messages for bg, break and continue) the help is
printed to stderr instead of stdout. To make sure the error message is
visible in the pager, we pass it to builtin_print_help, every call of which
needs to be updated.
Fixes #6227
2019-10-28 18:36:07 +01:00
ridiculousfish
d992480204
Clean up a few string handling bits
2019-10-27 16:22:42 -07:00
Akatsuki
446735af07
completions/btrfs.fish: Format options list
...
Format the list of completion per command
Easier to read and edit at next time if need
2019-10-27 16:47:48 -07:00
Akatsuki
b43f80e2d9
completions/btrfs.fish: Add detailed options completions
...
Add completion for options in option groups
Remove myself author information
2019-10-27 16:47:48 -07:00
ridiculousfish
eeac3333df
Correctly highlight input following a tokenizer error
2019-10-27 16:08:49 -07:00
ridiculousfish
afd20b8e1a
Correctly report the range of tokenizer errors
...
This enables proper syntax highlighting of tokenizer errors.
2019-10-27 16:05:37 -07:00
ridiculousfish
0bfd897ee0
Add a special error message for |&
2019-10-27 15:24:57 -07:00
ridiculousfish
2a92e66902
Support for &> and &| as convenience redirections
...
This adds support for &> and &| syntax, which both redirect stdout, and
also apply a redirection of stderr to stdout.
2019-10-27 15:24:57 -07:00
Clément Martinez
756e9826bc
Improve gpg
completions
2019-10-27 13:22:24 -07:00
Mahmoud Al-Qudsi
f620ddf03b
Set fish_clipboard_paste handler once on startup
...
Instead of searching each time.
2019-10-27 12:40:53 -05:00
Mahmoud Al-Qudsi
ae6bdfa37c
Handle empty clipboard for all providers
...
Closes #6254
2019-10-27 12:38:52 -05:00
Johannes Altmanninger
56b4763c67
Fix file completion for builtins "set" and "test -f" and others
2019-10-27 08:07:54 +01:00
Johannes Altmanninger
a930cabb91
Update comment
2019-10-27 06:58:20 +01:00
Johannes Altmanninger
40c553db29
Fix completion scripts for builtins "exec" and "not"
2019-10-27 06:58:20 +01:00
Johannes Altmanninger
9564e4a6d6
Fix formatting in dump_tree
2019-10-27 06:58:20 +01:00
Johannes Altmanninger
4a1edbd3cb
make completions for ninja aware of the build directory passed by -C
2019-10-27 06:58:20 +01:00
Jan Tojnar
9d1ccf8110
Fix composer completions on Python 3
...
Some distros (Arch) use python command for Python 3, so we need to update the scripts to work with it. We cannot just switch to python3 command because MacOS does not ship it.
2019-10-26 18:19:44 +02:00
Akatsuki
b89a6451a3
functions/__fish_print_hostnames: Fix ssh_configs no values return ( #6236 )
...
* functions/__fish_print_hostnames: Fix ssh_configs no values return
`string replace` not working with mutlilines variable.
So split per line first.
* functions/__fish_print_hostnames: remove quotes at `split '\n'`
"\n with quotes" will cause `string split` weird issues.
* functions/__fish_print_hostnames: using `read -alz -d \n`
Fix `$contents` issues together
2019-10-26 18:17:52 +02:00
Lior Stern
5b2250883a
Add termux support for fish_config.
2019-10-26 18:16:54 +02:00
Akatsuki
0ef6a136e8
completions: add btrfs ( #6243 )
...
* completions: add btrfs
Completion definitions for the btrfs-progs.
* completes/btrfs.fish: using `not set -q argv[1]` instead of `test -z $argv`
* CHANGELOG: add btrfs completions
2019-10-26 18:15:42 +02:00
Shun Sakai
3e28ab454f
Rename long option of bzip2
...
From `--bzip` to `--bzip2`
2019-10-26 18:13:54 +02:00
Shun Sakai
7ce38a1ee6
Add supported compression algo to completions for tar
...
- lzip (--lzip)
- LZMA (--lzma)
- lzop (--lzop)
- Zstandard (--zstd)
2019-10-26 18:13:54 +02:00
Z. Grace Moreau
b6fbec8107
update CHANGELOG
2019-10-26 18:13:15 +02:00
Z. Grace Moreau
4be30a872a
add completion for nethack
2019-10-26 18:13:15 +02:00
Gabriel Medeiros Coelho
af48fa5d91
change href attribute to ng-href
...
Since the url is inside a AngularJS markup {{url}}, it's better to use **ng-href**.
From [AngularJS Documentation](https://docs.angularjs.org/api/ng/directive/ngHref ):
<br>
"Using AngularJS markup like {{hash}} in an href attribute will make the link go to the wrong URL if the user clicks it before AngularJS has a chance to replace the {{hash}} markup with its value. Until AngularJS replaces the markup the link will be broken and will most likely return a 404 error. The ngHref directive solves this problem."
2019-10-26 18:12:44 +02:00
Lior Stern
2810ba0014
Check that /proc/version is readable before reading it in web_config.
...
/proc/version may be unreadable in Android.
2019-10-26 18:12:10 +02:00
Akatsuki
f8ead077bf
completions/pacman.fish: add ignore
& ignoregroups
completions
...
`ignore` -> `$listall`
`ignoregroups` -> `$listgroups`
2019-10-26 18:11:29 +02:00
Akatsuki
0ec954a8c2
completions/pacman.fish: -F add package completions
...
`-F` add package completions, let `-Fl` work fine
Another changes:
Add missing quotes, let format neat
2019-10-26 18:11:29 +02:00
Akatsuki
080f367635
completions/pacman.fish: refine completions
...
Refine completions with pacman 5.2.0 man pages
2019-10-26 18:11:29 +02:00
Akatsuki
d1214edc7a
functions/__fish_print_pacman_repos.fish: fix
...
This function return wrong data.
Fix this.
2019-10-26 18:11:29 +02:00
Akatsuki
2b9dd4595c
completes/pacman.fish: replace --force
to --overwrite
2019-10-26 18:11:29 +02:00
Akatsuki
4cdc5e4020
completions/pacman.fish: Update for pacman 5.2
...
pacman 5.2 has remove File Options `-s --search` and `-o --owns`.
Ref: [pacman: rework the UI of -F](https://git.archlinux.org/pacman.git/commit/?id=ff1ae94c102cab487444bcdb0c76ee489c11dfe8 )
2019-10-26 18:11:29 +02:00
239
6a9ab0599f
completion: zpaq archiver ( #6245 )
2019-10-25 15:22:09 +02:00
Bruno Heridet
655f7c8c63
doc: add link to echo in printf command
...
[ci skip]
2019-10-24 21:44:53 +02:00
Johannes Altmanninger
0a5c2051b1
Always use wl-{copy,paste} if running on wayland
2019-10-24 11:42:33 +02:00
David Adam
4fbc6cd3f8
CHANGELOG: minor work on 3.1.0
2019-10-24 17:13:50 +08:00
Johannes Altmanninger
44c311b5df
Update changelog
2019-10-24 11:06:19 +02:00
Ryan Adolf
947e46b9cc
Add completions for iw
2019-10-24 11:03:54 +02:00
Johannes Altmanninger
785b7d9438
typo
2019-10-24 10:46:02 +02:00
Z. Grace Moreau
8c9f3c7bd4
update CHANGELOG
2019-10-23 19:41:53 +02:00
Z. Grace Moreau
b1fb99b578
add completions for cygpath
and cygstart
2019-10-23 19:41:53 +02:00
LawAbidingCactus
305a657694
fix typos
2019-10-23 19:38:44 +02:00
Aaron Gyes
59e4314752
Apply --reverse for fish_color_*'s being used for a background
...
e.g. Allows using `--reverse` in fish_pager_color_search_match
and actually having the selected pager items display reversed.
2019-10-22 16:28:56 -07:00
Aaron Gyes
5fa9fb52aa
config_make.h.in: remove __sentinel
...
We haven't used this attribute for a while
2019-10-22 16:27:58 -07:00
Fabian Homborg
66938d206a
string: Error out on match -eq
...
The `--entire` would enable output even though the `--quiet` should
have silenced it. These two don't make any sense together so print an
error, because the user could have just left off the `-q`.
2019-10-22 22:11:36 +02:00
David Adam
d579964c7d
travis: enable thread sanitizer build
2019-10-20 18:15:00 +08:00
Johannes Altmanninger
b52d3d641e
Fix clean build of sphinx-docs
2019-10-20 08:15:58 +02:00