Diego Zamboni
d982f2a575
Vagrant completion updates
...
Improve vagrant completions for some commands to avoid spurious
completions, and add completions for some missing Vagrant commands.
Fixes #1748 .
2014-10-10 15:06:00 -07:00
Kevin Ballard
76c6985f82
A little extra tweaking so builtin_print_help looks better
...
The terminal width magic that __fish_print_help learned doesn't help
when builtin_print_help runs it in a subshell. Instead, add an
undocumented --tty-width flag to __fish_print_help that's used to pass
the terminal width.
2014-10-10 00:11:23 -07:00
Kevin Ballard
ac8c5910eb
Rewrite __fish_print_help to produce better results
...
As a result of this rewrite, the output now:
* Expands to fit the terminal width, like `man` does
* Preprocesses the manpage with `tbl` just in case, since `man` does
this, even though I doubt any fish manpages use `tbl` formatting.
* Handle bold/underline with the `ul` command as it was designed for
instead of trying to fake it with `sed`.
* Compresses blank lines as `man` does with the default `less -is`
pager.
2014-10-09 23:48:10 -07:00
Kevin Ballard
cc7f1755aa
web_config: Interpret fish output as utf-8
...
Use the unicode replacement character in place of non-utf-8 sequences.
2014-10-09 20:21:26 -07:00
Kevin Ballard
7493c9a040
fish_config: Log the path for errors
2014-10-09 18:33:59 -07:00
Kevin Ballard
9fc8729b96
Support -h/--help with eval
...
`eval` prints help if given a single argument of -h or --help.
Fixes #1379 .
2014-10-09 18:07:57 -07:00
Kevin Ballard
80859b8483
Revert "Remove help completion for eval, which doesn't work"
...
This reverts commit d2f23e1df4
.
2014-10-09 17:59:14 -07:00
David Adam
71c55e1a4a
web_config: send correct MIME type (and actually send it)
2014-10-09 18:45:17 +08:00
ridiculousfish
d2f23e1df4
Remove help completion for eval, which doesn't work
...
Fixes #1379
2014-10-08 11:50:04 -07:00
Kevin Ballard
8e8e63144b
Rewrite abbr
function
...
The usage is still the same, but it's a lot more robust, and also no
longer assumes $fish_user_abbreviations must be a universal variable.
This also fixes the unexpected error output when calling `abbr -a` with
no existing abbreviations.
Calling `abbr -a` with an abbreviation that already exists now silently
overwrites the abbreviation, just like `function` and `bind` do, instead
of complaining.
2014-10-07 19:14:44 -07:00
David Adam
3f0210dc96
web_config: fix output if no abbreviations defined
2014-10-07 12:21:02 +08:00
David Adam
7764a1a6f8
web_config: add support for viewing abbreviations
...
Add a new tab which lists the current abbreviations defined, by wrapping
the `abbr` command.
Work on #731 .
2014-10-05 12:23:31 +08:00
David Adam
980bf6e2f4
web_config: set width to dynamic 80% of window
...
As we add more tabs, 800px looks increasingly cramped, and our config
should take advantage of the screen space available.
2014-10-05 12:23:31 +08:00
David Adam
501c3d5518
abbr.fish: add abbr, a command to manipulate abbreviations
...
Work on #731 .
2014-10-05 12:23:31 +08:00
David Adam
6a0931aeae
web_config: update AngularJS to 1.0.8
2014-10-05 12:23:31 +08:00
Konrad Borowski
1665f84d60
Fix Perl module completions.
...
This fixes the issue with nonexistant directories (some Linux
distributions put these for local modules), and also fixes the
issue of dot meaning any character instead of simply dot.
2014-10-04 11:22:56 +02:00
Roman Inflianskas
fabee7e246
add yast2 completion
2014-10-04 00:41:10 +04:00
Jon Gjengset
0ffa434926
Prevent STDERR leak from abook detection in mutt completion
...
Fixes #1737
2014-10-03 14:39:42 -04:00
Kevin Ballard
a7727765dc
Clean up prompt_pwd with the new function -V flag
...
Also fixes `cd /private` displaying as no path on OS X.
2014-10-02 18:41:39 -07:00
Kevin Ballard
33a76e1f8e
Update psub for the new --inherit-variable flag
...
Also do some minor formatting cleanup, make psub return 1 when executed
outside of a command substitution, and make it respect $TMPDIR.
2014-10-02 18:41:39 -07:00
Kevin Ballard
3f11d90744
# This is a combination of 2 commits.
...
# The first commit's message is:
Simplify default fish_prompt
No need for the set_color caching now that it's a builtin.
Also simplify the 3 classic prompts in fish_config's sample_prompts set.
2014-10-02 18:41:01 -07:00
Kevin Ballard
4ba95ad1c3
Minor tweaks to initial keybinding load
...
Remove comment that AFAICT is not true anymore.
Ensure someone setting __fish_active_key_bindings as a universal
variable doesn't screw up the initial keybinding load.
2014-10-02 12:14:22 -07:00
David Adam
5157ac30fa
Create and use $DATADIR/vendor_completions.d/ for upstream completions
...
Closes #1485 .
2014-10-01 21:28:01 +08:00
David Adam
a186f04f15
Manpage completions: store in $XDG_DATA_HOME
...
Closes #1343 , works towards #1257 .
2014-09-29 19:39:36 +08:00
Vincent Huang
15ca3b426f
Added some completions for opam
...
All opam subcommands and descriptions are covered, along with
all the flags that are common to all commands. However, only
`opam config` has complete subsubcommand coverage.
2014-09-29 14:34:07 +08:00
David Adam
1c9aec4899
bind: add completions for -m and -M
...
See https://github.com/fish-shell/fish-shell/issues/1663
2014-09-29 14:22:37 +08:00
David Adam
f0d8d90ed1
__fish_print_hostnames: use awk to process ssh_config files
...
Uses awk rather than sed to account for multiple formatting options.
Closes #1260 .
2014-09-29 14:08:09 +08:00
David Adam
6ece8523b1
__fish_complete_path: add new completion, mimics builtin path completion
...
Completions can now be written which disable file completion and then
selectively re-enable it using this function.
Closes #834 .
2014-09-29 14:05:18 +08:00
Konrad Borowski
26051ea198
Add Meta+H as keybinding for man page.
...
Apparently, in zsh, Meta+H can be used to display the manpage for
the current command. This commit adds this zsh feature to fish shell.
The F1 keybinding is left, although it's now secondary according to
fish help, as some terminal emulators don't let the user press F1 key.
2014-09-28 11:12:25 +02:00
David Adam
3ac28f2b01
Revert "math.fish: support floating-point maths"
...
This reverts commit 7cad0069e8
.
https://github.com/fish-shell/fish-shell/issues/1723
http://superuser.com/questions/31445/gnu-bc-modulo-with-scale-other-than-0
This is why we can't have nice things.
2014-09-27 23:27:05 +08:00
David Adam
7cad0069e8
math.fish: support floating-point maths
...
Closes #1643 .
Thanks to Mickaël RAYBAUD-ROIG (https://github.com/m-r-r ) for the idea
of printf.
2014-09-27 18:38:44 +08:00
lledey
73158d6255
Fix emacs completion on OS X
...
Avoid calling seq with 0 as argument since its behaviour is wrong on OS X.
2014-09-24 13:05:22 +01:00
Konrad Borowski
8d03baa4e0
Make fish config work if one of colors is undefined.
...
This moves the sorting to be done before sorting remaining colors.
2014-09-23 13:48:00 +02:00
Kevin Ballard
e1f623f548
Only print fish_greeting for interactive shells
...
Shell scripts that use `read` should not trigger fish_greeting.
Fixes #1401 .
2014-09-21 20:35:33 -07:00
Kevin Ballard
a9c8b75599
Tweak git completion for aliases/stashes
...
Use the new `read -z` flag to complete git aliases better. This approach
won't break if an alias contains a newline.
Also fix stash completion, which was broken on BSD sed.
2014-09-21 19:54:42 -07:00
Konrad Borowski
166a2f91bd
Use double dashes for contains in fossil completions.
...
This fixes the issue with strange behaviour of fish shell when first
option of a command is an option.
2014-09-21 14:32:37 +02:00
Kevin Ballard
a381ac2691
Complete custom git commands in $PATH
...
Git treats executables in $PATH that start with "git-" as custom
subcommands. Add completion support for them.
Fixes #1680 .
2014-09-19 19:19:59 -07:00
Kevin Ballard
e2be71cbe4
Better git alias completion
...
Config entries that contained the word "alias" but were not in fact
aliases no longer are treated as aliases.
2014-09-19 19:19:59 -07:00
ridiculousfish
6083c6fc72
Incorporate attribute links for color themes in web_config
2014-09-19 18:44:50 -07:00
Kevin Ballard
0a32d96b27
Reset fish_bind_mode when changing fish_key_bindings
...
Also avoid resetting bindings if fish_key_bindings is "modified" without
actually changing.
Fixes #1638 .
2014-09-18 15:46:17 -07:00
David Adam
eb40baacfc
update completions for builtin commands
2014-09-17 10:17:48 +08:00
Michael Stillwell
133ba6e01b
Ignore "host", "hostname", and hostname wildcards
...
See the PATTERNS section of ssh_config(5) for wildcards supported by ssh.
2014-09-16 17:20:59 +02:00
qjcg
9bfb4f1e11
Fix webconfig URL generation for python3
...
Closes #1677 .
Signed-off-by: David Adam <zanchey@ucc.gu.uwa.edu.au>
2014-09-15 16:40:28 +08:00
Kevin Ballard
f22864b813
Ensure type
still works if $IFS is unset
2014-09-08 23:35:29 -07:00
Kevin Ballard
15cf06438e
Suppress PATH errors in sudo tab-completion
...
Setting a non-existant path component to PATH logs an error to stderr.
This is not appropriate for non-interactive temporary modifications,
like the one done by the `sudo` completion helper function.
2014-09-04 13:22:06 -07:00
Konrad Borowski
1d0279eac5
Fix F1 binding to work with multiple tokens.
2014-08-30 11:18:56 +02:00
Nikolai Aleksandrovich Pavlov
cb29350954
Fix fish_vi_mode.fish
2014-08-29 13:15:13 -07:00
Konrad Borowski
71ab40e536
Add Fossil command completions.
2014-08-29 14:19:55 +02:00
ridiculousfish
f9f773cc28
Comment on why we run 'false' in web_config.py
2014-08-22 12:04:23 -07:00
Kevin Ballard
d9bf53c6e5
Show a non-zero status in the fish_config prompt
...
When selecting a prompt with fish_config, render the prompt with a
non-zero status so the user knows what it looks like.
2014-08-22 12:00:16 -07:00