Michael Steed
cb984cf761
Add 'bigword' vi key bindings
...
- Add four new functions: forward-bigword, backward-bigword,
kill-bigword, backward-kill-bigword
- Add new enum move_word_style_whitespace and related state machine
method
- Change vi key bindings to operate on bigwords: B, gE, W, E, dW, diW,
daW, dE, dB, dgE, cW, ciW, caW, cE, cB, cgE, yW, yiW, yaW, yE, yB,
ygE
2015-06-04 12:09:02 -07:00
ridiculousfish
3a190bbe49
Revert "Notify vte-based terminals when a command completes."
...
Backing out fix for #2096 until we know how to avoid
spamming other terminals (#2102 )
This reverts commit 5c4acc8ee1
.
2015-05-30 11:57:31 -07:00
Ben Liblit
5c4acc8ee1
Notify vte-based terminals when a command completes.
...
Notification is sent using an OSC 777 escape sequence as described at
http://known.phyks.me/2014/local-notifications-for-weechat-and-urxvt .
The specific notification is crafted to match that emitted by bash
when running under Fedora 22 with the "vte-profile" RPM installed.
See the code for "__vte_prompt_command" starting at
http://pkgs.fedoraproject.org/cgit/vte291.git/tree/vte291-command-notify.patch#n307
to see exactly what bash produces. My approach is, however, a bit
more paranoid about control characters embedded in commands.
Gnome-terminal 3.16 responds to this escape sequence by posting a
desktop notification if the containing terminal window does not have
focus. This lets the user know that a long-running background command
has completed. Job notification is promoted as a Fedora 22 feature
(http://fedoramagazine.org/terminal-job-notifications-in-fedora-22-workstation/ ),
so it would be good for fish users to be benefit from it.
Conversely, anyone who does not want this feature can use "functions
--erase __notify_vte_command_completed" to turn it off.
2015-05-28 03:10:56 -05:00
David Adam
013d91d4ee
Revert "Add completions for pass"
...
This reverts commit bfbeca8b6c
which was
submitted in #2089 .
`pass` ships its own completions and duplication is likely to cause
problems.
See https://github.com/fish-shell/fish-shell/pull/1843 for the
rationale.
2015-05-25 12:02:05 +08:00
John Pham
8e0c1c70ce
Add completions for git-filter-branch
2015-05-23 11:43:54 +02:00
Rico Sta. Cruz
bfbeca8b6c
Add completions for pass
2015-05-23 06:07:57 +08:00
David Adam
c0cf25cf0b
abbr: rename --remove to --erase
...
for consistency with other fish commands
Closes #2071 .
2015-05-22 09:48:39 +08:00
ridiculousfish
386d6a77f2
Make fish_config work correctly when IPv6 is disabled in the kernel
...
Fixes #1754
2015-05-17 19:18:27 -07:00
ridiculousfish
a83323705d
Make fish_config work correctly when IPv6 is disabled in the kernel
...
Fixes #1754
2015-05-17 19:13:50 -07:00
Brendan Whitfield
9b5026f7e5
added cursor:pointer to master_element in web_config css
2015-05-03 17:33:25 +08:00
ridiculousfish
879d03d0fe
Reset the color after printing the CWD in classic+git prompt
...
Fixes #2034
2015-04-23 17:53:40 -07:00
ridiculousfish
7a1fc028e3
Only pass the command name to command-not-found
...
With the fix for #365 , fish_command_not_found event handlers
receive the command and all of its arguments. But commands
like /usr/lib/command-not-found expect only the command name.
So when invoking an external command, just pass the command
name, not all of the arguments.
2015-04-20 02:22:54 -07:00
Roman Hargrave
9dc53f7c1b
Added completions for apt
command
2015-04-16 10:47:36 +08:00
ridiculousfish
6faac2d2c8
Revert "Source files /etc/profile.d/*.fish at startup"
...
Per discussion in #1956 , back this out until we have consensus.
This reverts commit 20a6b65b25
.
2015-04-14 10:08:40 -07:00
ridiculousfish
97aa1c033b
Switch back to insert mode after executing a command in vi mode
...
Fixes #1933
2015-04-08 10:31:48 -07:00
Nathan L Smith
34296dd440
add completions for test kitchen
2015-04-07 13:49:54 +08:00
ridiculousfish
87428672d8
Fix funcsave to not delete the function it just created
...
In 73f344f41b
, we allowed autoloaded functions to be deleted.
For some reason, funcsave immediately deletes the function it
creates. This previously did very little, since the function would
immediately be re-autoloaded, but with the fix for 73f344f41b
the function gets tombstoned. So the effect is that funcsave
makes the function disappear! This simply removes the erase call,
which dates back to fish 1.x.
2015-04-06 22:40:13 -07:00
Sanne Wouda
cad1dc5293
Fix #1978:"ul: unknown escape sequence" when asking for help
...
It seems that `ul` can't handle the escape sequences for bold text that `nroff` generates on my system. Fixed by either removing `| ul`, or adding `-c` to the `nroff` command.
Needs testing for old (OSX?) versions of nroff.
2015-04-04 12:03:58 -07:00
David Adam
900a8a1408
__fish_complete_python: fix regex to be POSIX-compatible
...
Closes #2004 .
2015-03-30 15:13:04 +08:00
David Adam
384cb2d735
Revert "__fish_config_interactive: warn users that fishd is going away"
...
This reverts commit ad61c3f0d6
.
Work on #1730 .
2015-03-30 13:42:59 +08:00
David Adam
ad61c3f0d6
__fish_config_interactive: warn users that fishd is going away
...
Work on #1730
2015-03-26 16:24:52 +08:00
ridiculousfish
e896acffd7
Use $PWD instead of (pwd) in sample prompt
...
This improves the case where the working directory has vanished
Fixes #1857
2015-03-24 17:03:40 -07:00
ridiculousfish
20a6b65b25
Source files /etc/profile.d/*.fish at startup
...
Fixes #1956
2015-03-24 16:46:25 -07:00
David Adam
48d353610f
abbr: coalesce multiple arguments to --add
...
Makes the behaviour of the script match the documentation.
2015-03-13 16:32:05 +08:00
Fabian Homborg
22103e4849
systemctl: Fix devices/slices/scopes/swaps completion
...
A rogue single-quote meant that a non-existent function
'__fish_systemctl_$t' was called
2015-03-11 13:29:18 +08:00
Fabian Homborg
5a9b1b1b57
Revert "Adjust filters a bit" - it doesn't work for .service
...
Unfortunately, list-unit-files doesn't understand --state=loaded
This needs a new function to explicitly use list-units
This reverts commit 9f521b7694
.
2015-03-06 23:05:24 -08:00
Fabian Homborg
d99ed89aa3
Adjust filters a bit
...
This includes only showing unmasked units in mask, only loaded units in
start and more types in show/list-dependencies
2015-03-06 23:05:24 -08:00
Fabian Homborg
b9dd057a04
Make enable/disable completions work again
...
Was single-quoted, should have been double-quoted
2015-03-06 23:05:24 -08:00
Fabian Homborg
369a09e57e
Simplify code by removing duplicated descriptions
...
For-loops ftw!
2015-03-06 23:05:24 -08:00
Fabian Homborg
468648ff51
systemctl completions: Improve option handling
2015-03-06 23:05:24 -08:00
Fabian Homborg
8c41a053fe
systemctl completions: Show options for --property=
...
Inspired by the official bash completion, this uses systemd --dump-configuration-items.
2015-03-06 23:05:24 -08:00
Fabian Homborg
a1b3358cb8
systemctl completions: Remove duplicated commands
2015-03-06 23:05:24 -08:00
Fabian Homborg
16e65c849c
systemctl completions: Only list matching units on enable/disable
2015-03-06 23:05:24 -08:00
Fabian Homborg
33c0d93b20
systemctl completions: Add more unit types and commands
...
It should now support all unit types mentioned in systemd.unit(5)
2015-03-06 23:05:24 -08:00
Fabian Homborg
3d163eb910
systemctl completions: Simplify code by using __fish_seen_subcommand_from
2015-03-06 23:05:24 -08:00
Fabian Homborg
3e32715693
systemctl completions: Support user-mode
2015-03-06 23:05:24 -08:00
Fabian Homborg
388a8d09d8
systemctl completions: Support command-after-options
...
This fixes completions for e.g. `systemctl --quiet status`
2015-03-06 23:05:24 -08:00
Trenton Broughton
dd595dd110
Added some common completions
...
* Added completion for `git branch --merged`
* Added completion for `git branch --no-merged`
2015-02-19 11:10:04 -05:00
David Adam
597dda5a4b
isatty: use command test instead of redirections
...
Adds a fork but can't use builtin test yet.
Closes #1870 .
2015-02-01 18:18:34 +08:00
David Adam
66acd17bc0
isatty: revert to previous behaviour
...
This partially reverts commit 60808a4820
.
2015-02-01 18:18:34 +08:00
T. Jameson Little
793784c087
Add command-not-found handler for Arch Linux
...
- checks for `pkgfile`, which is an optional (but official)
package used for searching for packages given a file
2015-01-30 22:01:40 -07:00
LoveIsGrief
df6f1e8f62
Add hg branch and status to terlar's prompt
2015-01-30 23:07:40 +08:00
LoveIsGrief
facfe33218
Add function to ouput hg branch and status for a prompt
...
This is an adaptation of terlar's git prompt output
2015-01-30 23:07:40 +08:00
David Adam
78dfc57b1e
web_config: set new prompts via JSON instead of URI-encoded
...
Fixes problems with encoding and decoding Unicode from URL-encoded strings,
which was impossible to get right in Python 2.
2015-01-30 22:54:13 +08:00
David Adam
d17ba69f9e
web_config: respect the client's character set for JSON
2015-01-30 22:52:41 +08:00
David Adam
5c16b5598b
web_config: fix python2/3 unification for parse_qs
2015-01-30 22:52:07 +08:00
David Adam
028d9e8e3b
default key bindings: ignore FocusIn/FocusOut control sequences
...
Closes #1917 .
2015-01-30 16:01:25 +08:00
David Adam
53a4814d8b
web_config: respect linebreaks in prompt demos
2015-01-29 21:41:31 +08:00
David Adam
1ff9aba6b1
rsync completions: rework transformation of file list
...
Accounts for filenames that contain spaces.
Closes #1872 .
2015-01-23 12:27:23 +08:00
Jelte Fennema
f920be5ea3
Make emerge completion more powerful
2015-01-19 17:39:37 +08:00
Jelte Fennema
f9384fe323
Make commands more readable
2015-01-19 17:39:25 +08:00
Max Gonzih
dce487380c
Fix not found handler for fedora
2015-01-18 11:52:15 +01:00
ridiculousfish
75a76c596c
Clean up recent fix for #1892
...
Restore 906d235
and simplify how __fish_restore_status works
2015-01-17 15:36:30 -08:00
Jelte Fennema
9e3f912747
Ignore error message when not on a Gentoo system
2015-01-17 11:51:36 +01:00
Konrad Borowski
e529b78365
Don't define unnamespaced internal function.
2015-01-17 11:50:23 +01:00
Jorge Bucaran
2018b9b217
Fix: eval should preserve previous $status if the evaluated block does not change it
...
Empty functions may return 1 when eval is used due to the $status not being correctly preserved inside the function definition.
2015-01-17 11:44:55 +01:00
ridiculousfish
906d235601
Add more expository comments to eval, and remove a useless parameter
2015-01-07 14:56:41 -08:00
Andreas Heiduk
a0127a0c7a
Change fish_paginate to paginate both stdout and stderr.
2014-12-28 23:14:13 +08:00
volnt
390fe05a87
Update pythonista.fish: make virtualenv aware that prompt is set
...
Closes #1823 , closes #1795 .
Signed-off-by: David Adam <zanchey@ucc.gu.uwa.edu.au>
2014-12-28 19:28:12 +08:00
ridiculousfish
8d50b2509d
Update completions for fish_indent
2014-12-24 13:07:28 -08:00
Jonathan Arnett
04651105a8
Tmuxinator completions
2014-12-24 02:22:41 -05:00
Max Gonzih
46cd89c2db
Support nixos command-not-found handler
2014-12-22 11:16:36 +08:00
Igor Savchuk
381404c4f4
tmux completion: add more attach-session aliases
2014-12-08 17:29:24 +03:00
Konrad Borowski
9a34df604d
Make fish_config handle no LANG variable set.
...
Fixes #1849 .
2014-12-05 21:39:21 +01:00
Konrad Borowski
2f96d2b19a
Add cygport completions provided by Andrew Schulman
...
Squashed commit of the following:
commit a396c5e95a9987ea8ce6e057910131886d1b9695
Merge: bfd1951
f329530
Author: Konrad Borowski <x.fix@o2.pl>
Date: Mon Dec 1 17:54:02 2014 +0100
Merge branch 'master' of https://github.com/andrex-e-schulman/fish-shell into andrex-e-schulman-master
commit f32953064e
Author: Andrew Schulman <andrex-e-schulman@users.noreply.github.com>
Date: Mon Dec 1 05:34:29 2014 -0500
improve descriptions of pkg and diff
commit 81def0fb30
Author: Andrew Schulman <andrex-e-schulman@users.noreply.github.com>
Date: Mon Dec 1 04:51:20 2014 -0500
simplify cygport option descriptions
commit 4d84eb3e5c
Author: Andrew Schulman <andrex@5200-glenwood.net>
Date: Mon Dec 1 04:32:47 2014 -0500
add command descriptions to share/completions/cygport
commit c7ff7e4fa2
Author: Andrew Schulman <andrex@5200-glenwood.net>
Date: Mon Dec 1 03:09:00 2014 -0500
add share/completions/cygport.fish
2014-12-01 17:54:59 +01:00
Rack Lin
bfd1951023
Added export
alias for set global variable, made for sh/bash/zsh compatibility
...
Signed-off-by: Rack Lin <racklin@gmail.com>
Signed-off-by: David Adam <zanchey@ucc.gu.uwa.edu.au>
2014-12-01 15:43:57 +08:00
Vladimir Varankin
019c0fed23
Add completion for git-clean
2014-11-29 00:15:49 +03:00
David Adam
c78e56c509
Update various strings for translation, avoid _ for non-translations
...
Use __ instead of _ as a placeholder for ignored variables in `read`
statements.
2014-11-25 15:37:30 +08:00
David Adam
190cac07a3
grep.fish: don't set GREP_COLOR
...
grep will fall back to the default colors.
Closes #1316 .
2014-11-25 08:48:16 +08:00
David Adam
efc3846fcf
grep.fish: don't use GREP_OPTIONS as it is deprecated
...
Closes #1825 .
2014-11-25 08:47:30 +08:00
David Adam
918d5595bd
__fish_config_interactive: send CWD via escapes in Apple Terminal
...
Closes #68 .
2014-11-20 14:45:11 +08:00
David Adam
0abdf9eeff
__fish_urlencode: rework to behave properly on BSD/OS X
...
Work on #68 .
2014-11-20 13:53:24 +08:00
Misty De Meo
8e8549ef7a
brew completion: update completion
...
* Remove unsupported options
* Add new 'unpack' command
2014-11-20 08:53:53 +08:00
ridiculousfish
93eea8de66
Filter lines starting with hash from /etc/shells and /etc/group
...
Fixes the useradd completion when these files
contains comment lines
2014-11-19 11:42:55 -08:00
David Adam
2ddd839f52
Fix error in yum completions
...
Pass -- to contains.
Closes #1811 .
2014-11-17 18:16:11 +08:00
David Adam
9aaf93f364
web_config: improve abbreviations support
...
* Fetch abbreviations by reading the variable directly.
* Use space separators for writing new abbreviations.
Work on #731 .
2014-11-16 23:20:27 +08:00
David Adam
14fa48864a
abbr.fish: escape the output of abbr --show
...
Allows abbreviations containing embedded newlines, etc., to be displayed
and exported properly.
Work on #731 .
2014-11-16 23:13:22 +08:00
David Adam
206ea15b68
abbr.fish: improve support for corner cases
...
Handle unusual cases ('=abc', ' =abc') better - regression from
8e8e6314due to a7bab7b
.
Work on #731 .
2014-11-16 23:05:58 +08:00
David Adam
a7bab7b18b
abbr/web_config: support space-delimited abbreviations
...
Support for space-delimited abbreviations was added to the expansion
parser in fbade198; this commit extends that support to the user-facing
tools, and documents the space-separated behaviour. Equals-delimited
abbreviations are expected to be removed before the next release.
Work on #731 .
2014-11-15 23:48:40 +08:00
David Adam
a6a41d159c
__fish_print_packages: add support for zypper
...
Closes #1787 .
2014-11-13 18:15:35 +08:00
David Adam
00e0ed64bc
__fish_systemctl_*: use systemctl to generate the list of units
...
Closes #1804 .
Note that if systemd is not running, the completion will fail.
2014-11-10 12:51:07 +08:00
ridiculousfish
32c0afe5a9
Clean up vared error message output
...
Fixes #1323
2014-11-09 16:43:14 -08:00
ridiculousfish
43d23ee56e
Remove pre-1.22 migration support in fish_config_interactive
...
This removes some gnarly and probably broken code that attempts
to upgrade from fish 1.21 to fish 1.22. Fixes #1714 .
2014-11-09 13:27:56 -08:00
jbbrokaw
9d7fbd2cc0
Fixes typo on line 86
2014-11-04 11:06:21 -08:00
jbbrokaw
32010d1d93
Changes tabs to 4 spaces per fish style
2014-11-04 11:06:21 -08:00
jbbrokaw
75860db511
Adds heroku toolbelt completions
2014-11-04 11:06:20 -08:00
Jared Grubb
d9d9fa512d
vi bindings: add CTRL-C handler in default mode
...
There is no CTRL-C handler for the default mode in the vi bindings. This makes it difficult to say "never mind" and start a new command line like you can do in bash's vi mode.
There were CTRL-C handlers for insert and visual modes that go back to default mode, but nothing happens in default mode. I copy-pasted the CTRL-C handler from the default key bindings file.
2014-10-31 22:17:17 -07:00
Alex Sulim
d62694a9ce
Update completion for Bundler
...
All commands and options available for Bundler version 1.7.4
Signed-off-by: David Adam <zanchey@ucc.gu.uwa.edu.au> (with trailing
fullstops removed)
2014-10-28 11:58:31 +08:00
Natrim
f03d90e9de
Add Composer completion
2014-10-26 22:04:47 +08:00
David Adam
a580d04dbc
history: put the output through the pager in interactive mode
...
(Ideally, the behaviour of git could be implemented: pipe the input
through a pager iff the length is > window size and in interactive
mode).
Closes #1076 .
2014-10-26 17:19:29 +08:00
Pawel Zubrycki
c84cdcd00c
Added hg repo status to robbyrussell example prompt
2014-10-26 16:00:12 +08:00
David Adam
5638764bad
prompt_pwd: Use tilde expansion to get real full home path
...
Closes #1133 .
2014-10-26 14:20:49 +08:00
Roman Inflianskas
cfa41686d2
Add setfacl completions
2014-10-21 08:27:32 +08:00
ridiculousfish
15e095233b
Allow funced to retry on error
...
Fixes #1371
2014-10-17 11:50:09 -07:00
David Adam
a64c372a28
web_config: add support for adding and editing abbreviations
...
Possible future enhancements include explanatory text and an image for
the 'save' action.
Work on #731 .
2014-10-17 10:28:26 +08:00
David Adam
1f91a2a6f5
web_config: map nonexistent post requests to 404
2014-10-17 10:28:26 +08:00
David Adam
4aa38db56f
ls: find and use various dircolors initialisation files, if they exist
...
Closes #1758 .
2014-10-17 10:23:05 +08:00
David Adam
4140e678f4
web_config: further python2/3 unification
2014-10-12 16:04:40 +08:00
David Adam
cc0fcdc18d
web_config: use only Python 3-style (Unicode) string literals
...
Improves Python 2/3 compatibility.
(It is the distant future, the year TWO THOUSAND.)
2014-10-12 15:48:14 +08:00
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