Fabian Homborg
8814f34dc1
Improve killall completions
...
- Remove UID resolution, since that can be slow.
- Remove a `uname` call by storing the result
- Stringify
- Indent
Fixes #3996 .
2017-05-04 23:58:45 +02:00
Adriaan Zonnenberg
09ce297352
Add completions for caddy
2017-05-04 15:09:29 +02:00
Fabian Homborg
084a820de3
Stringify xrandr completions
2017-05-03 23:36:43 +02:00
Fabian Homborg
c06a71bfbe
Stringify hg completions
2017-05-03 23:36:25 +02:00
Fabian Homborg
044d45a0ff
Stringify adb completions
...
Also reindent.
2017-05-03 23:35:34 +02:00
David Adam
d3cfab1391
webconfig: apply colour syntax highlighting to functions tab
...
Closes #1432 .
2017-05-03 08:37:27 +10:00
David Adam
1e9caecbcb
webconfig: import angular-sanitize module
...
Enables use of ngBindHtml.
Work on #1432 .
2017-05-03 08:37:27 +10:00
Fabian Homborg
f5fac096c0
Don't move cursor in delete-char
...
Instead, move forward and backward in vi-mode.
Fixes #3899 .
2017-04-28 22:53:03 +08:00
David Bishop
2565c5c15b
Use $suffix in classic_vcs prompt instead of hardcoding to '>'
...
Also, ensure that suffix is local in both classic_vcs.fish and informative_vcs.fish.
Fixes #3991
2017-04-26 16:01:52 -07:00
Fabian Homborg
77201ade34
__fish_complete_users: Also test for command, not path
2017-04-25 17:36:22 +02:00
Fabian Homborg
49d3a58a9e
__fish_complete_users: Use command
, not a hardcoded path
2017-04-25 12:47:23 +02:00
Kurtis Rader
37508d1f1e
refactor the __*_users functions
...
Per my comment in issue #3980 this implements `__fish_print_users` in
terms of `__fish_complete_users` so we don't have to modify both when a
change to how users are enumerated is needed.
2017-04-23 20:08:40 -07:00
Christian Rondeau
bea0b17c9e
Aucompletion guards for /etc/passwd #3980
2017-04-23 19:41:07 -07:00
Fabian Homborg
ec92e91ddc
fish_clipboard_paste: Turn \r into \n
...
We already do this in bracketed-paste because it's really confusing to
have a \r literal in the commandline.
2017-04-23 13:40:40 +02:00
Fabian Homborg
cc7d83fa94
fish_clipboard_paste: Fix multiline pasting
2017-04-23 13:38:32 +02:00
Fabian Homborg
17ba21cfe4
Fix pasting backslashes
...
Another missing escape.
Fixes #3981 .
2017-04-23 13:32:24 +02:00
Alex Gaynor
f30c50cec5
[hg completions] remove a grep and use hg's native query syntax
...
This has the side benefit of working around a wild bug with readline+fish that I've reported to the upstream readline developers. (The result of that bug is that the hg processes are constantly being leaked as `bg` jobs in the shell, which is how I came to notice this in the first place)
2017-04-21 18:56:54 +02:00
Fabian Homborg
805a177673
__fish_config_interactive: Prefer python3
...
Also includes the CHANGELOG.
2017-04-21 13:45:49 +02:00
Fabian Homborg
e410d47565
fish_config: Pick a python
...
Also remove a use of `eval` and `string escape`.
Fixes #3970 .
2017-04-21 13:45:49 +02:00
Fabian Homborg
7ef2d5e86f
fish_update_completions: Pick a python
...
This removes a need for packagers to either patch our shebangs or pick
a particular python.
This was already done in __fish_config_interactive (where we need to
duplicate the code because it involves backgrounding).
Work towards #3970 .
2017-04-21 13:45:49 +02:00
Kurtis Rader
b9d2e4d897
fix fish greeting regression
...
Fixes #3973
2017-04-20 20:17:50 -07:00
Fabian Homborg
cb9f4e621f
lua completions: Try harder to find libraries
...
Fedora puts them in /usr/lib64 without having /usr/lib as a symlink.
Also silence errors (in case a directory doesn't exist) and stringify.
See https://bugzilla.redhat.com/show_bug.cgi?id=1442628 .
CC @amluto.
2017-04-20 14:00:30 +02:00
Fabian Homborg
7c6600895e
Add missing options to functions completion
2017-04-19 23:11:35 +02:00
Francisco Giordano
349eff0df7
change cancel_commandline function to use color from variable
...
This allows the user to define how they want the "^C" rendered when a
pending command line is interrupted.
2017-04-17 21:16:42 -07:00
Ivan Trubach
a9db99ac52
Rename replace-one to replace_one
...
Fixes invalid character in variable name $fish_cursor_replace-one (used by fish_vi_cursor[_handle]) by renaming bind mode 'replace-one' to 'replace_one'.
2017-04-17 21:10:23 -07:00
Adam Byrtek
e7d686461e
Terraform completions ( #3960 )
...
* Basic Terraform completion supporting all commands
* Option completion for Terraform commands
* Search command line in reverse order
* CHANGELOG entry
* Fix `terraform untaint` completion
* Use common completion functions to handle subcommands
* Use imperative form and remove CHANGELOG changes
2017-04-17 17:18:39 +02:00
Adam Byrtek
dd69ca5a81
Warn when function is not modified by the editor after calling funced
( #3961 )
...
* Check whether tmp file was modified in `funced`
* More idiomatic error messages
* Store the checksum in a local variable
* MD5 function supporting both GNU and BSD
* Use `else if` in MD5 function
* Use `string` builtin instead of `cut`
2017-04-17 17:18:02 +02:00
Kurtis Rader
dcc081a594
mark __fish_sgrep as deprecated
...
Fixes #2450
2017-04-15 21:51:33 -07:00
Kurtis Rader
75f1e36b44
a step to remove __fish_sgrep per issue #2450
2017-04-15 21:49:08 -07:00
Kurtis Rader
b3617cfd86
a step to remove __fish_sgrep per issue #2450
2017-04-15 21:30:36 -07:00
Kurtis Rader
a381d959f2
a step to remove __fish_sgrep per issue #2450
2017-04-15 21:29:07 -07:00
Kurtis Rader
ae03df4bc4
a step to remove __fish_sgrep per issue #2450
2017-04-15 21:22:09 -07:00
Kurtis Rader
9d25b52208
a step to remove __fish_sgrep per issue #2450
2017-04-15 21:01:03 -07:00
Kurtis Rader
d48c872913
a step to remove __fish_sgrep per issue #2450
2017-04-15 20:59:09 -07:00
Kurtis Rader
4936de29e7
a step to remove __fish_sgrep per issue #2450
2017-04-15 20:23:48 -07:00
Kurtis Rader
3463e81dda
a step to remove __fish_sgrep per issue #2450
2017-04-15 20:04:43 -07:00
Kurtis Rader
a3cd5bf170
a step to remove __fish_sgrep per issue #2450
2017-04-15 18:32:30 -07:00
Kurtis Rader
cc3efcc3ab
a step to remove __fish_sgrep per issue #2450
2017-04-14 23:21:17 -07:00
Kurtis Rader
0be8d0d385
another __fish_sgrep replacement
2017-04-13 23:14:36 -07:00
Kurtis Rader
f20c7deaf1
a step to remove __fish_sgrep per issue #2450
2017-04-11 21:01:43 -07:00
Kurtis Rader
da09a915f2
improve __fish_complete_directories
function
...
Reviewing a PR for a completion script caused me to look at the
implementation for the `__fish_complete_directories` function. Which in
turn lead me to create this change to improve its implementation and add
unit tests for the function.
2017-04-11 13:45:53 -07:00
Alan Somers
ed6298ad17
Fix portmaster completions when there are no matches
...
Don't spew warnings when there are no matches. Also, use the string
builtin instead of calling sed.
Fixes #3949
2017-04-10 21:37:54 -07:00
Fabian Homborg
ddb9350ea9
Replace use of which
with command -sq
2017-04-08 13:21:04 +02:00
Kurtis Rader
75600b6b53
fix setenv
and add unit tests
...
Fixes #3937
2017-04-05 15:31:13 -07:00
SanskritFritz
2105bae1fc
Completions for ipset
2017-04-01 01:52:05 +02:00
SanskritFritz
0c265c0f52
Obnam completions updated
2017-04-01 01:52:05 +02:00
SanskritFritz
cd8982b645
Obsolete completions removed
2017-04-01 01:52:05 +02:00
Kurtis Rader
62244f01c2
fix umask
handling of symbolic modes
...
This fixes the handling of symbolic umask values. It also removes two
invocations of `perl` and all but two `math` commands.
Fixes #738
2017-03-28 16:28:24 -07:00
Fabian Homborg
4b9424eb20
type: Minor reformatting
...
Empty lines after `if` and `if begin`.
2017-03-28 15:55:10 +02:00
Fabian Homborg
c4d69ea8a1
type: Rewrite option parsing
...
Removes a call to `seq` and makes it a bit more readable.
2017-03-28 15:55:10 +02:00