ridiculousfish
865a4647ae
Allow variables in commands
...
Syntax highlighting for these coming in next commit.
Fixes #154
2018-09-01 12:00:56 -07:00
ridiculousfish
59d78e8afa
Clean up syntax highlighting test
2018-09-01 10:17:57 -07:00
David Adam
1e0fab4fa4
git_version_gen: add support for out-of-tree tarballs
...
Closes #4122 .
2018-08-28 23:10:24 +08:00
Vicente Reyes
3e9453840f
complete stack built binaries
2018-08-26 17:00:04 -07:00
ridiculousfish
de2b0d1ae8
Remove some #if 0 code
2018-08-26 02:36:28 -07:00
ridiculousfish
2a680ebd12
Fix some miscellaneous warnings
2018-08-26 00:43:40 -07:00
ridiculousfish
67c4da9dbf
Correct formatting in argparse
2018-08-25 16:18:49 -07:00
ridiculousfish
4abdf8c301
Some refactoring of argparse implicit ints
2018-08-25 16:14:16 -07:00
ridiculousfish
d046452cdf
Increased const correctness in argparse
2018-08-25 16:09:04 -07:00
ridiculousfish
9f436c3750
Clean up bits of wgetopter_t interface
2018-08-25 16:09:04 -07:00
Mahmoud Al-Qudsi
2cccc9b589
Add changelog note about background process reaping on exec
2018-08-22 12:26:38 -05:00
David Adam
ad4913fd61
README.md: add optional dependencies for yarn, bower and npm completions
2018-08-21 14:48:32 +08:00
David Adam
a78a480c53
CHANGELOG: whitespace fixes
2018-08-21 14:47:08 +08:00
Mahmoud Al-Qudsi
1b1bc28c0a
Protect against loss of background jobs on exec
...
`exec` now exhibits the same behavior as `exit` and prompts the user to
confirm their intention to end the current process if there are
background jobs running. Running `exec` again immediately thereafter
will force the exec to go through.
Additionally, background jobs are reaped upon exec to prevent process
leaking (same as `exit`).
2018-08-20 22:52:47 -05:00
ridiculousfish
54d8d169b5
Remove some compatibility juk from wgetopt
2018-08-18 17:22:55 -07:00
ridiculousfish
d9f34147c3
builtins to only acquire terminal if owned by their pgroup
...
Fix #5133 changed builtins to acquire the terminal, but this regressed
caused fish to be stopped when running in background via `sudo fish`.
Fix this by only acquiring the terminal if the terminal was owned by the
builtin's pgroup.
Fixes #5147
2018-08-18 16:56:01 -07:00
ridiculousfish
cbcabf6d00
Add support for fish_ambiguous_width
...
fish_ambiguous_width is a variable which controls the width of ambiguous CJK
characters.
Fixes #5149
2018-08-18 15:38:05 -07:00
ridiculousfish
d40a82b4d3
Mark reader.cpp jump as static
2018-08-18 14:48:46 -07:00
Chris
1d68b52cbc
Add till/repeat/reverse jump bindings
...
- Add support for:
- Jumping to the character before a target.
- Repeating the previous jump (same direction, same precision).
- Repeating the previous jump in the reverse order.
- Enhance vi bindings.
2018-08-18 14:42:29 -07:00
Fabian Homborg
7606bfc2e5
Merge pull request #5145 from antonv6/hg-completion
...
[Ready] Update Mercurial completion
2018-08-17 16:34:35 +02:00
Mahmoud Al-Qudsi
1c59a3f1a8
Fix traversal order of tokens in history completion
...
Fixes an issue introduced by e51e854
. Closes #5150 .
2018-08-16 14:07:38 -05:00
Mahmoud Al-Qudsi
e8a35bfaa8
Prevent errors in __fish_describe_command when apropos isn't installed
...
__fish_describe_command now bails early if `type -q apropos` returns a
non-zero exit code.
2018-08-16 13:20:04 -05:00
Anton Shestakov
1e58e00734
hg completion: complete directories for --cwd
2018-08-16 19:26:29 +08:00
Anton Shestakov
b3a00c5389
hg completion: add :forcedump and :tagmerge merge tools
2018-08-16 19:25:16 +08:00
Anton Shestakov
d70cdb19c1
CHANGELOG: mention hg completion
2018-08-15 14:44:08 +08:00
Anton Shestakov
8aef4330f0
hg completion: complete hg convert, email
2018-08-15 14:13:16 +08:00
Anton Shestakov
af4da66515
hg completion: do a pass over mq
2018-08-15 12:21:16 +08:00
Anton Shestakov
fb6b4b9ae5
hg completion: revert can restore deleted files too
2018-08-15 12:20:12 +08:00
Anton Shestakov
cdf39ed660
hg completion: complete hg files, rebase, shelve, unshelve
2018-08-15 12:15:07 +08:00
Anton Shestakov
6223833130
hg completion: update command descriptions, add more
2018-08-15 12:14:11 +08:00
Anton Shestakov
a175aaa18a
hg completion: new flags
2018-08-14 23:51:06 +08:00
Anton Shestakov
afff92c4b1
hg completion: update descriptions
2018-08-14 23:46:51 +08:00
Anton Shestakov
0ffbb657df
hg completion: remove --style (deprecated for 4 years)
...
It still works, but is just an alias for -T/--template.
2018-08-14 23:42:16 +08:00
George Christou
b39651f1ad
completions: [git] Silence various errors outside repo
2018-08-14 17:12:43 +02:00
Anton Shestakov
60e05d82c8
hg completion: fix -r and -x flags used for options
...
"Fixing" boils down to:
- removing -x from options that don't take arguments
- replacing -x with -r for options that want (any) file
2018-08-14 13:05:21 +08:00
Anton Shestakov
f95431362c
hg completion: add more --subrepos
2018-08-14 12:47:18 +08:00
Riccardo Azzolini
c79db8ecf7
cdh: Only replace home directory with ~ at the start of paths
2018-08-13 18:24:42 +02:00
Anton Shestakov
27c06c997c
hg completion: suggest files from hg st -amr
for hg diff
...
Added and removed files are already suggested for hg commit, makes sense
to do the same for hg diff.
2018-08-13 14:58:03 +08:00
Anton Shestakov
a9c30b05af
hg completion: complete abbreviations of hg archive (plus --type)
2018-08-13 14:53:17 +08:00
Anton Shestakov
99860c8294
hg completion: also complete hg blame (alias to annotate)
2018-08-13 14:52:38 +08:00
Anton Shestakov
c8c7fec48a
hg completion: complete --color=debug too
2018-08-13 14:52:10 +08:00
ridiculousfish
fa66ac8d8c
Acquire tty if interactive when running builtins
...
When running a builtin, if we are an interactive shell and stdin is a tty,
then acquire ownership of the terminal via tcgetpgrp() before running the
builtin, and set it back after.
Fixes #4540
2018-08-12 03:41:56 -07:00
ridiculousfish
c0a332743f
Escape less aggressively when showing completions in pager
...
Stop escaping [, spaces, etc. in the pager.
2018-08-12 03:37:13 -07:00
ridiculousfish
9b22ae7c74
Remove a gnarly macro from builtin_history
2018-08-12 02:41:09 -07:00
ridiculousfish
d87f00bdc9
Simplify history search
...
Remove features related to navigating forwards in history that are no
longer used.
2018-08-12 02:41:09 -07:00
ridiculousfish
e51e854d8d
Clean up reader history search
...
Factor the history search fields into a new class.
As a side effect, this shares the deduplication logic, so that token search
no longer returns duplicates.
Fixes #4795
2018-08-12 02:40:15 -07:00
ridiculousfish
1473f952d4
Make contains() more general
...
Allow contains() to find arbitrary values in arbitrary vectors, and adopt it
in place of std::find.
2018-08-11 22:23:20 -07:00
ridiculousfish
b0dc715d18
Factor update_autosuggestion to use can_autosuggest
2018-08-11 17:40:06 -07:00
ridiculousfish
4fdcc2e400
Begin to rationalize reader data stack
...
Switch from a manually maintained linked list to an explicit stack.
2018-08-11 13:17:00 -07:00
ridiculousfish
68c7ecd777
Remove reader_t::app_name field
...
It was unused
2018-08-11 13:02:50 -07:00