| Commit message (Collapse) | Author | Age |
| |
|
|
|
|
| |
Remove function, use wrapping.
|
|
|
|
| |
Fixes #1595
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
__fish_complete_mime used in that way is a no-op on current fish anyway,
and emacs is by no means useful for just text files (it can also view
PDFs, images, ...).
Otherwise this completion currently only offers options, not arguments.
For most these are pretty much incompletable (lisp code, for example),
and for others it's just not all that useful.
Signed-off-by: David Adam <zanchey@ucc.gu.uwa.edu.au>
|
|
|
|
|
|
|
|
|
|
| |
This used to be a function because we didn't have complete -w
Use that and it becomes a bit simpler.
This also simplifies the code in a few other ways (like removing a
useless-use-of-cat)
and adds comments about a few edgecases.
|
| |
|
|
|
|
| |
See fish-shell/fish-shell#1375
|
|
|
|
| |
Fixes fish-shell/fish-shell#1171
|
|
|
|
| |
This allows editors (like emacs) to pick up on the fact that it's a fish script.
|
| |
|
|
|
|
|
|
|
|
| |
- Complete fields and (more importantly) values
- Add all options
- Complete boots
Signed-off-by: David Adam <zanchey@ucc.gu.uwa.edu.au>
|
| |
|
| |
|
|
|
|
|
| |
In informative_status mode stateseparator did not use
fish_git_prompt_color settings.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
New sample prompt from Acidhub (github.com/acidhub)
This prompt show user|path (full), and a small symbol to
show last command status.
If in a git repository, it's show after the path several
symbols to indicate the branch status and the branch name.
Very handy to me so far.
Signed-off-by: Fernando Manfredi <contact@acidhub.click>
|
|
|
|
|
|
| |
changed `function __trap_handler_EXIT --on-exit %self` to `function __trap_handler_EXIT --on-process-exit %self`
I'm guessing the on-exit syntax was from an older version? Trapping EXIT with that syntax caused errors.
|
|
|
|
|
|
| |
Adds behaviour similar to bash:
- shorten dirs output by representing $HOME as ~;
- provide a '-c' option to clear the stack
|
|
|
|
|
|
|
| |
The following behaviour is added:
- an empty pushd exchanges the top two directories in the stack;
- pushd +<n> rotates the stack so that the n-th directory (counting from the left of the list shown by dirs, starting with zero) is at the top;
- pushd -<n> rotates the stack so that the nth directory (counting from the right of the list shown by dirs, starting with zero) is at the top.
|
| |
|
| |
|
| |
|
|
|
|
| |
Work on #2141.
|
| |
|
|
|
|
|
| |
fish_config requires that these fields be lowercase, otherwise
they won't show up in the prompt list.
|
| |
|
|
|
|
| |
Closes #2137.
|
|
|
|
|
|
|
|
|
|
|
| |
1. When run with no arguments, make abbr do the equivalent
of `abbr --show`
2. Enable "implicit add", e.g. `abbr gco git checkout`
3. Teach `abbr --show` to not use quotes for simple cases
4. Teach abbr to output -- when the abbreviation has
leading dashes
Add some basic tests to abbr too.
|
|
|
|
|
|
|
|
|
| |
Add a new function fish_mode_prompt which (if it is defined) has its output
prepended to the left prompt. Rather than replacing the prompt wholesale, make
fish_vi_mode enable this function by setting a variable __fish_vi_mode. This
enables vi mode to interoperate nicely with custom prompts. Users who want
to change how the mode is reported can either redefine this function or
erase it entirely. Fixes #1988.
|
|
|
|
|
| |
`fish_config abbr` should show "abbreviations" selected
in the tab list.
|
|
|
|
| |
Removes the big white block of the input fields.
|
|
|
|
| |
Updates fish_config to use the correct argument to abbr
|
|\ |
|
| |
| |
| |
| | |
Closes #2077.
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
- 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
|
| |
| |
| |
| |
| |
| |
| | |
Backing out fix for #2096 until we know how to avoid
spamming other terminals (#2102)
This reverts commit 5c4acc8ee1485e40b00ea0578aeff338078cfb8b.
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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.
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
This reverts commit bfbeca8b6c2fd5f25488bc1add4198e570898722 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.
|
| | |
|
| | |
|
| |
| |
| |
| |
| |
| | |
for consistency with other fish commands
Closes #2071.
|
| |
| |
| |
| | |
Fixes #1754
|
|/
|
|
| |
Fixes #1754
|
| |
|
|
|
|
| |
Fixes #2034
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
|
| |
Per discussion in #1956, back this out until we have consensus.
This reverts commit 20a6b65b2536c4f59934a2e52271cfa814a586ea.
|
|
|
|
| |
Fixes #1933
|
| |
|
|
|
|
|
|
|
|
|
|
| |
In 73f344f41bd2, 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 73f344f41bd2
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.
|