Fabian Homborg
c0acc98faa
Also document autoloaded event handlers in funcsave
2015-09-11 11:33:04 +02:00
Fabian Homborg
9828d787fa
Document problems with event handlers and autoloading
...
Fixes #845 .
2015-09-11 11:33:04 +02:00
Fabian Homborg
53456b5fc3
Document pushd "+N" and "-N"
...
Fixes #2173
2015-09-11 11:33:04 +02:00
Fabian Homborg
73a5e2bc6b
Document dirs -c
...
Fixes #2174
2015-09-11 11:33:04 +02:00
ridiculousfish
9a2ac5fcb6
Fix a typo in documentation for 'complete'
2015-09-10 18:09:08 -07:00
ridiculousfish
025b45b91e
Don't crash on complete -C in non-interactive mode
...
Fixes #2361
2015-09-10 18:08:42 -07:00
Fabian Homborg
31d1e04301
git completion: Don't check $cmd[1]
...
Before we do anything else, remove this senseless piece of code
2015-09-10 16:17:14 +02:00
Fabian Homborg
a828f90d38
git: Add more options for format-patch and submodule
...
Not all of them and only those that don't accept arguments for now
Fixes #1996
2015-09-10 15:22:16 +02:00
Fabian Homborg
00556734bc
git completion: Ignore stderr for all commands
...
Might print unrelated crap if we try to complete while not in a git repository
2015-09-10 15:22:16 +02:00
Fabian Homborg
b231ab7238
Allow set_color options in general for linux VTs
2015-09-10 15:12:02 +02:00
Fabian Homborg
2587bbc4a7
rbenv completion: Remove trailing spaces
2015-09-10 15:10:25 +02:00
Fabian Homborg
40df11b162
Also allow bold, underline and printing colors in linux kernel VTs
...
bold works, printing colors doesn't change anything and underline
doesn't _break_.
2015-09-10 12:27:09 +02:00
David Adam
a66d44054c
reader.cpp: send smkx/rmkx when entering/leaving interactive mode
...
Closes #2139 .
2015-09-10 16:22:39 +08:00
Fabian Homborg
e9fcbb334e
rbenv completion: Support ruby-build as plugin
...
Fixes #1028
2015-09-10 02:04:40 +02:00
ridiculousfish
babc6f0f9c
Stop exporting fish configuration directories (argh)
2015-09-09 16:50:05 -07:00
Fabian Homborg
bffeb664cc
Add __fish_sgrep
...
Missed in b85a8bb
because of `git commit -a`.
Fixes #2372
2015-09-09 21:52:18 +02:00
Fabian Homborg
b85a8bbbfe
Rename sgrep to __fish_sgrep
...
Makes it harder to cause issues with aliases, see fish-shell#2245
2015-09-09 20:55:04 +02:00
Fabian Homborg
925f451773
Add descriptions to dd completions
...
Fixes #752 .
2015-09-09 19:40:58 +02:00
David Adam
8bf1e694fe
doc_src/complete: update for new options in synopsis
...
Update complete documentation, hopefully to avoid another #2368 .
[ci skip]
2015-09-09 17:42:42 +08:00
Chris Pick
c5bc221b27
Use the $TERM value from fish's computed environment for ncurses setup
...
Previously, the process's inherited $TERM value would be used.
This prevented users from being able to set $TERM in their config.fish files.
To make matters worse, the error message would print the computed $TERM value,
giving the mistaken impression that it was being used.
Signed-off-by: David Adam <zanchey@ucc.gu.uwa.edu.au>
2015-09-09 17:06:13 +08:00
Jan Ernsting
7f28acc5ed
Complete tags for git-tag only
2015-09-07 13:35:50 +02:00
Jan Ernsting
f36d2ff55f
Ensure display of modified files for git commit
2015-09-07 13:35:34 +02:00
Jan Ernsting
396e01a0e0
Add missing description
...
git reset allows for files and branches as completion results
2015-09-07 11:05:47 +02:00
Jan Ernsting
787c1304c6
Add file completion for git-reset
...
Staged files are now offered for completion
2015-09-07 11:05:47 +02:00
Jan Ernsting
d92c08c9bb
Add completion for git-commit
...
Modified files are provided for completion
2015-09-07 11:05:47 +02:00
Fabian Homborg
bd3b4e03e9
Suspend docs: Fix typo
...
While not a huge thing, wrong variable names always carry great
confusion potential.
2015-09-06 15:03:43 +02:00
Fabian Homborg
cb5511c8db
Vcs prompt: Break if vcs isn't installed
...
Prevents an annoying error message.
Fixes #2363 .
2015-09-06 14:58:09 +02:00
Corey Ford
54b6a1c08e
Fix error message for variable used as command
2015-09-03 21:42:42 -07:00
James
5e1c71b059
Added completions for entr
2015-09-02 13:59:25 +02:00
Fabian Homborg
f3695b95fc
Use $VISUAL before $EDITOR in funced
...
Closes #2268
2015-09-02 13:55:59 +02:00
Mike Meyer
32a3e15309
Add info to suspend help page.
2015-09-02 13:40:43 +02:00
Mike Meyer
0661553484
Add suspend help page.
2015-09-02 13:40:43 +02:00
Fabian Homborg
5f080fcfc9
Load fish_user_key_bindings for any binding (including vi)
...
fish_user_key_bindings is the user's, and they should know if they want
vi-ish bindings or emacs-ish (or nano-ish). If they want to define
multiple, they can also do that (e.g. via checking what
$fish_key_bindings is set to).
Fixes #2254
CC @kballard
2015-09-01 11:50:50 +02:00
Fabian Homborg
a21e44c155
Add escape sequences for arrows in some linux VTs
...
Why this is only in some, I don't know, but these don't seem to
interfere with anything.
Fixes #2309
2015-09-01 11:46:54 +02:00
Fabian Homborg
60089f9750
Remove setup outside of fish_prompt from sample prompts
...
This doesn't work with fish_config.
For terlar and pythonista, remove unnecessary color setting.
For informative+git and pythonista, move variable setup into fish_prompt
Fixes #1141
2015-08-31 21:27:44 +02:00
Fabian Homborg
5043b9d06e
Revert "Fix missing variable expansion $ in psub"
...
That change was a bit too eager as the mkfifo route doesn't currently work.
See #1040 and #2052 .
This reverts commit a17b9fdaba
.
2015-08-31 19:32:28 +02:00
Fabian Homborg
a17b9fdaba
Fix missing variable expansion $ in psub
2015-08-31 19:24:48 +02:00
Fabian Homborg
2f3123e175
Make overriding cnf-handler work
...
See #1925 : This allows users to disable the cnf-logic which can be quite
slow on small hardware (like a raspberry pi).
Squashed commit of the following:
commit 742a59e30d8db24b6bb5067d4204d4b5cc01c1c3
Author: Fabian Homborg <FHomborg@gmail.com>
Date: Sun Aug 30 18:23:41 2015 +0200
Erase startup cnf-handler early
Simplifies the code a bit - in particular it removes the special-casing
from the startup handler.
commit 638a97e7f31f302b65e044c93c638c03a69e31f5
Author: Fabian Homborg <FHomborg@gmail.com>
Date: Mon Aug 24 20:14:46 2015 +0200
Make overriding cnf-handler work
Do this by renaming the __fish_command_not_found_handler used during
startup to __fish_startup_command_not_found_handler. That allows us to
check if __fish_command_not_found_handler has been defined and skip the
setup of the normal one.
Now disabling cnf-handling can be done via defining an empty
__fish_command_not_found_handler in config.fish
2015-08-31 18:39:15 +02:00
Fabian Homborg
17c756971a
Add a shell suspend function
...
Squashed commit of the following:
commit ede9e510751497d61ff0e78fd948e901171cf6f9
Merge: 938da30
239d2a2
Author: Fabian Homborg <FHomborg@gmail.com>
Date: Thu Aug 6 18:47:43 2015 +0200
Merge branch 'suspend' of https://github.com/mwm/fish-shell into suspend
commit 239d2a28e1
Author: Mike Meyer <mwm@mired.org>
Date: Thu Aug 6 11:24:32 2015 -0500
Handle interactive & login shells, SHLVL checks, and better message.
commit 6334047ebd
Author: Mike Meyer <mwm@mired.org>
Date: Tue Aug 4 08:53:10 2015 -0500
Add a description to suspend
commit 080458b31c
Author: Mike Meyer <mwm@mired.org>
Date: Tue Aug 4 07:05:17 2015 -0500
Add a shell suspend function
2015-08-30 18:42:35 +02:00
Fabian Homborg
f71e877f18
Improve situation for linux in-kernel VTs (TERM = "linux")
...
This adds a special colorscheme and prompt function guaranteed to work
on a VT and activates them automatically if $TERM = "linux".
set_color is overridden to only allow the 8 colors VTs have (under the
assumption those are always the same) and the color variables are
shadowed with global ones so they don't pollute our nice capable terms.
2015-08-30 18:30:03 +02:00
Annika Backstrom
d6c97a6a13
Fix spelling
2015-08-30 00:33:04 -04:00
ridiculousfish
e0e732523e
Remove an errant ampersand from the docs
...
Fixes fish-site issue 26
2015-08-26 21:15:59 -07:00
Fabian Homborg
47b9993469
{prev,next}d-or-*-word: Fix for multiple lines
...
Fixes #2333
2015-08-26 21:30:04 +02:00
Fabian Homborg
7bfad18ec7
Make alt-arrow in iTerm2 do the same thing as elsewhere
...
nextd-or-forward-word and such
Fixes #1836
2015-08-25 13:49:40 +02:00
David Adam
b0504f7739
env_universal_common: always pick shmem strategy on Cygwin
...
Cygwin FIFOs do not support more than one reader, so avoid them on this
platform. An autoconf feature test would be helpful but is tricky to
write.
Closes #2152 .
2015-08-24 18:45:57 +08:00
Fabian Homborg
67ed58b0ba
gpg: Complete files for --import
2015-08-24 12:38:24 +02:00
Fabian Homborg
a815e6ca14
Fix ping -I completion
2015-08-21 19:16:04 +02:00
ridiculousfish
b59904632d
Rewrite parse_util_unescape_wildcards
...
Make it simpler, and use wcstring instead of wcsdup
2015-08-19 11:35:24 -07:00
ridiculousfish
c1b9b27f86
Remove unused original_pid variable
2015-08-18 11:22:05 -07:00
ridiculousfish
2b87705a46
Remove vi mode indicator from classic_git prompt
...
It is duplicative of the fish_mode_prompt function
Fixes #2228
2015-08-18 10:52:53 -07:00