Peter Collingbourne
6dc4ac60ae
Use $PWD to retrieve the current directory in __fish_move_last.
...
(command pwd) uses the system's implementation of pwd. At least the GNU
coreutils implementation defaults to -P, which resulted in symlinks being
expanded when switching between directories with nextd/prevd.
2019-12-07 12:20:31 +01:00
Jason
7999cd4f25
Remove fish_fallback_prompt function
2019-12-07 12:16:48 +01:00
Fabian Homborg
9d14594f7c
Merge pull request #6390 from ammgws/debian
...
Move __fish_print_debian_services into invoke-rc.d completion script
2019-12-07 12:16:29 +01:00
Jason
c4400c31f7
Remove deprecated function
2019-12-07 12:16:15 +01:00
Jason
3129b3c5ef
Move __fish_print_debian_services into invoke-rc.d completion script
2019-12-05 05:26:26 +09:00
Fabian Homborg
9efb7fd5f6
__fish_cancel_commandline: Always repaint
...
Fixes #6394 .
2019-12-04 21:21:34 +01:00
Jason
a361cde1df
Move __fish_complete_svn_diff into the completion script
2019-12-04 20:53:58 +01:00
Jason
965b142acd
Move __fish_print_zfs_* into zfs completion script
2019-12-04 20:53:01 +01:00
Jason
69dccce937
Move __fish_print_function_prototypes into valgrind completion script
2019-12-04 20:51:55 +01:00
Jason
013001c283
Move __fish_print_lsblk_columns into lsblk completion script
2019-12-04 20:51:37 +01:00
Jason
5107de395d
Move __fish_print_xdg_desktop_file_ids into xdg-mime completion script
2019-12-04 20:51:21 +01:00
Jason
9c15b5b7a4
Move __fish_systemd_machines into machinectl completion script
2019-12-04 20:51:09 +01:00
Jason
b658b421ad
Move __fish_ports_dirs into ports completion script
2019-12-04 20:50:55 +01:00
Jason
40832f897c
Move __fish_portage_print_repository_names into emaint completion script
2019-12-04 20:50:28 +01:00
Jason
69255d5641
Move __fish_parse_configure into configure completion script
2019-12-04 20:50:19 +01:00
Jason
b3f8a93e02
Move __fish_print_abook_emails into mutt completion script
2019-12-04 20:50:01 +01:00
Jason
dacc0b595c
Dont clobber fish_browser if cygstart is available
2019-12-03 18:07:18 +01:00
Johannes Altmanninger
c3374ffd08
Use read --tokenize instead of eval for $BROWSER & $EDITOR
2019-12-03 12:19:16 +01:00
edef
031d30c8ac
Handle multiple arguments in $PAGER
...
$PAGER may contain arguments, and should thus be word-split before
invocation.
2019-12-02 15:15:33 +01:00
Fabian Homborg
d91b0f86f4
Repaint all prompts if the variables change
...
This is a good idea in general and simplifies the Classic + VCS
prompt.
2019-12-01 18:15:36 +01:00
Fabian Homborg
115892ccd2
alias: Use read --tokenize
...
This did some weird unescaping to try to extract the first word.
So we're now more likely to be *correct*, and the alias benchmark is
about 20% *faster*.
Call it a win-win.
2019-12-01 18:14:26 +01:00
Jason
2fd1e4ab75
Move __fish_complete_unrar into the completion script
2019-12-01 17:35:35 +01:00
Jason
fa373c102c
Move __fish_complete_wvdial_peers into the completion script
2019-12-01 17:34:46 +01:00
Jason
6486349725
Move __fish_complete_tar into the completion script
2019-12-01 17:34:27 +01:00
Jason
6245d76e57
Move __fish_complete_lsusb into the completion script
2019-12-01 17:33:07 +01:00
Jason
b3291619f4
Add missing logic to trampoline block
2019-12-01 17:31:41 +01:00
Jason
b358cee5fe
Move __fish_complete_setxkbmap into the completion script
2019-11-30 12:12:18 +01:00
Jason
d1a153cc7e
Dont convert path if browser is going to be run in terminal
2019-11-30 09:33:38 +01:00
Jason
585e4e905b
Dont convert path if browser is going to be run in terminal
2019-11-30 09:33:38 +01:00
Jason
8192fb2f2a
Fix Windows path support for WSL/Cygwin
...
- Use wslpath under WSL to provide full path to help file
- Use eval on the final command to cmd.exe
- Use trampoline where necessary for Cygwin
2019-11-30 09:33:38 +01:00
mk2
c36d802dda
Move __fish_complete_file_url to evince.fish
2019-11-30 00:21:47 -08:00
mk2
439470b048
Move __fish_complete_ant_targets to ant.fish
2019-11-27 16:32:37 +01:00
0x005c
48dc9b1e82
Add replace mode in vi-mode
2019-11-25 16:05:10 -08:00
Akatsuki
cb72a33e0c
Fix some issues in __fish_complete_subcommand.fish
...
Fix 'string length: Unknown option': add `--` before $subcommand
Fix count $subcommand always = 1 with `sudo` and `doas`:
give argv as array to __fish_complete_subcommand
[ci skip]
2019-11-17 00:39:06 +01:00
Fabian Homborg
330f1701d7
Restyle
...
This mostly fixes some wrong indents or replaces some stray tab indents.
I excluded alignment on purpose, because we have a whole bunch of code
that goes like
```fish
complete -c foo -n 'some-condition' -l someoption
complete -c foo -n 'some-longer-condition' -l someotheroption
```
and changing it seems like a larger thing and would include more
thrashing.
See #3622 .
2019-11-16 14:57:59 +01:00
Fabian Homborg
c14a7cbc8f
seq.fish: Allow "--" separator
...
This ended up breaking the random test on OpenBSD (apparently the only
place where this is actually used).
2019-11-16 11:21:45 +01:00
Fabian Homborg
7527fc265b
psub: Use explicit command
...
This would have prevented #6323 .
While we don't want to pepper `command` everywhere, `psub` is kind of
a core thing, so we should try to proof it against common problems.
2019-11-14 17:13:39 +01:00
Johannes Altmanninger
270fd14b00
Fix typo
...
[ci skip]
2019-11-08 11:40:03 +01:00
Johannes Altmanninger
0e4a75c0b5
Do not print greeting with empty $fish_greeting and --private
...
Fixes #6299
[ci skip]
2019-11-08 11:09:33 +01:00
Johannes Altmanninger
5c3e43bc0c
vi mode: make return key in replace mode insert a newline
...
Fixes #6298
[ci skip]
2019-11-08 10:51:58 +01:00
Johannes Altmanninger
d242ff1808
Add description for automatic fish_update_completions job
...
See #6269
2019-11-07 23:33:35 +01:00
Johannes Altmanninger
35115d3d54
__fish_print_help: do not read $LESS
2019-11-07 17:45:54 +01:00
Jakub Darul
3b4234a9de
added d0 to vi keybindings
2019-11-06 18:18:43 +01:00
Johannes Altmanninger
4f1fa9513c
Make most subcommand completions take external commands only
...
Also fix ssh completions which were broken by
277fca9c6a
.
2019-11-05 11:47:05 +01:00
Johannes Altmanninger
36693e4391
Complete empty subcomands consistently
...
If the command is empty, try to complete starting from the empty command
instead of the whole commandline.
2019-11-05 09:05:46 +01:00
Fabian Homborg
e893c8ca97
Revert "Set fish_clipboard_paste handler once on startup"
...
This reverts commit f620ddf03b
.
Setting the paste handler isn't performance-sensitive.
On the other hand setting it this way makes things less transparent,
less flexible (if e.g. a paste handler is installed while the shell is running),
and causes #6286 .
Fixes #6286 .
[ci skip]
2019-11-04 20:47:58 +01:00
Johannes Altmanninger
6fb7f9b6b8
Fix completion for builtins (with subcommands)
...
Presently the completion engine ignores builtins that are part of the
fish syntax. This can be a problem when completing a string that was
based on the output of `commandline -p`. This changes completions to
treat these builtins like any other command.
This also disables generic (filename) completion inside comments and
after strings that do not tokenize.
Additionally, comments are stripped off the output of `commandline -p`.
Fixes #5415
Fixes #2705
2019-11-04 16:44:51 +01:00
LawAbidingCactus
19b59fc54e
minor fixes to version-specific completions
2019-11-03 21:37:57 +08:00
Z. Grace Moreau
dd1f8489a7
add -o/--old to __fish_seen_argument
2019-11-02 14:48:57 -07:00
Johannes Altmanninger
e0d4a1d78b
Fix sudo/doas completions not using /sbin
...
Fixes #6259
[ci skip]
2019-11-01 21:24:03 +08:00