David Adam
c93c66f76b
docs: fix formatting in prompt_pwd manual
2019-09-17 17:31:47 +08:00
David Adam
605885f851
docs: whitespace cleanup in source
...
Fixes some lint warnings.
2019-09-17 17:28:19 +08:00
David Adam
f11ee26aae
docs: slight grammar improvement in source docs
...
[ci skip]
2019-09-17 16:37:35 +08:00
David Adam
4265b02eb3
docs: standardise on exit status terminology
...
Exit status is used in the POSIX specification and is preferred over return code/return status/exit
code.
[ci skip]
2019-09-17 16:37:01 +08:00
David Adam
2f6c8fb21a
docs: source creates a new local scope
...
Discussed in #4443 .
2019-09-17 16:25:12 +08:00
ridiculousfish
d903fe6073
Relnote fix for #3189
2019-09-14 16:42:28 -07:00
ridiculousfish
533ee65963
Allow binding nul (zero byte)
...
This sequence can be generatd by control-spacebar. Allow it to be bound
properly.
To do this we must be sure that we never round-trip the key sequence
through a C string.
2019-09-14 16:37:57 -07:00
ridiculousfish
5f6ee7f30f
Use the gold linker if available
...
The big reason to do this is that the gold linker doesn't complain about
_sys_nerr and _sys_errlist.
2019-09-14 15:09:08 -07:00
ridiculousfish
5afcc439a5
Clean up input_terminfo_get_sequence
2019-09-14 14:59:01 -07:00
ridiculousfish
5ebcd3de98
Remove some unnecessary string formatting
2019-09-14 14:22:37 -07:00
ridiculousfish
06269ed67d
Remove NOT_A_WCHAR
...
It's now unused.
2019-09-14 13:18:04 -07:00
ridiculousfish
8747018cbc
Use maybe_t in unescape_string_internal
2019-09-14 13:17:22 -07:00
ridiculousfish
fa1dab040b
Use maybe_t in read_unquoted_escape
2019-09-14 12:54:38 -07:00
ridiculousfish
7ea3255eef
Correct the exit expect test
...
There was an errant space which is not matched; this seems to cause problems
only on one machine for mysterious reasons.
2019-09-14 12:46:57 -07:00
ridiculousfish
cc5e29734b
Use maybe_t in string_last_char
2019-09-14 11:56:02 -07:00
Johannes Altmanninger
0ecfc25961
Fix highlighting of redirection to -
(close file descriptor)
...
Fixes #6092
2019-09-14 13:04:27 -05:00
David Adam
77ef2ef6c3
jobs: return success when a job is found via --last
...
Closes #6104 .
2019-09-14 13:01:36 -05:00
David Adam
737c2d156d
history: fixup exact matching by default
...
Work on #6070 . Fixup from 54ed2ad440
.
2019-09-11 23:12:10 +08:00
David Adam
e935f5ce89
docs: fix formatting of name of shells
...
Work on review comments in #5312 .
[ci skip]
2019-09-11 12:25:27 +08:00
David Adam
ccdef3936f
docs: improve introduction section
...
Work on review comments in #5312 .
2019-09-11 12:20:08 +08:00
Mahmoud Al-Qudsi
58cd1a5140
Eschew hard-coding rustup components in favor of a hack
...
[ci skip]
2019-09-10 03:23:59 -05:00
Mahmoud Al-Qudsi
32546d6491
Reorder rustup
completions to avoid undefined function error
...
[ci skip]
2019-09-10 03:23:55 -05:00
Mahmoud Al-Qudsi
85f93ff002
Add dynamic completions for rustup
...
[ci skip]
2019-09-09 20:55:08 -05:00
ridiculousfish
56d2942f59
Minor cleanup of how jobs store their command string
2019-09-09 09:07:25 -07:00
ridiculousfish
535a448d0e
Remove an errant fprintf
2019-09-08 15:44:07 -07:00
ridiculousfish
b2fe2f9ff3
Correct escaping and add tests for bracket completion
...
Add some tests for new bracket completion behavior, and fix an escaping
bug where \\[ was incorrectly marked as escaping.
2019-09-08 15:43:20 -07:00
Johannes Altmanninger
bc3dde997d
escape square brackets in an argument before completing it
...
fixes #5831
2019-09-08 12:27:58 -07:00
ridiculousfish
e79df33e3a
Disallow parsing 'and' and 'or' as commands
...
Except for and --help and or --help
Fixes #6089
2019-09-08 11:09:32 -07:00
ridiculousfish
fa6bac1283
Correctly implement and --help and or --help
2019-09-08 10:42:24 -07:00
Johannes Altmanninger
962bfa9668
Escape literal dollar signs in quoted completions
...
Closes #6060 .
2019-09-07 13:52:40 -05:00
Mahmoud Al-Qudsi
f854e3dc29
Try fixing __has_attribute errors on Travis macOS
2019-09-05 23:11:59 -05:00
Mahmoud Al-Qudsi
80610addf8
Avoid warnings about unsupported clang::weak_import w/ GCC on macOS
2019-09-05 23:00:46 -05:00
Mahmoud Al-Qudsi
912421f1cb
Switch away from awk
for __fish_print_hostnames
...
By not manipulating each line or even each file at a time, we can go
back to `string` and piece together a pipeline that will execute
significantly faster than shelling out to `awk` will. This also removes
one of the few dependencies on `awk` in the codebase.
With this change, `__fish_print_hostnames` now finishes ~80% faster than
it used to a few commits back.
2019-09-05 22:44:09 -05:00
Mahmoud Al-Qudsi
1db861b4db
Clean & slightly optimize SSH hostnames handling in __fish_print_hostnames
2019-09-05 22:44:09 -05:00
Mahmoud Al-Qudsi
06317f0a98
Optimize __fish_print_hostnames
hosts file loading/parsing
...
Reordering the `getent hosts` and read from `/etc/hosts` combined with
minimizing shelling and job invocations for parsing the output results
in a profiled and benchmarked ~42% decrease in the time it takes to run,
and that's on a machine with a very small hosts list in the first place.
This update also fixes the hadling of IPv6 addresses in the hosts
output, which were previously ignored, and ignores 127.* loopback
addresses in addition to the 0.0.0.0 address (plus adds support for
shorter IPv4 notations).
2019-09-05 22:44:09 -05:00
ridiculousfish
b760fd9064
Correctly set g_use_posix_spawn at launch again
2019-09-05 11:00:52 -07:00
LawAbidingCactus
c20a9ea477
fix compatibility with BSD sed
...
Closes #6087 .
2019-09-03 15:35:04 +08:00
Johannes Altmanninger
f7dac82ed6
Escape separators (colon and equals) to improve completion
...
Fish completes parts of words split by the separators, so things like
`dd if=/dev/sd<TAB>` work.
This commit improves interactive completion if completion strings legitimately
contain '=' or ':'. Consider this example where completion will suggest
a🅰️ 1 and other files in the cwd in addition to a:1
touch a:1; complete -C'ls a:'
This behavior remains unchanged, but this commit allows to quote or escape
separators, so that e.g. `ls "a:<TAB>` and `ls a\:<TAB>` successfully complete
the filename.
This also makes the completion insert those escapes automatically unless
already quoted.
So `ls a<TAB>` will give `ls a\:1`.
Both changes match bash's behavior.
2019-09-02 14:27:21 -07:00
David Adam
54ed2ad440
history: implement exact matching by default for delete
...
Brings behaviour into line with documented and intended behaviour.
Closes #6070 .
2019-09-02 22:59:52 +08:00
Nathan Galt
8b84f4f117
Add completions/tokei.fish
...
Closes #6085 .
2019-09-02 22:37:01 +08:00
Nathan Galt
76195dfe1d
Update bat completions from 0.11.0 to 0.12.0
...
Closes #6084 .
2019-09-02 22:35:08 +08:00
Nathan Galt
635dafeb9c
Update bat completion to support cache command
...
Closes #6076 .
2019-09-02 22:32:47 +08:00
Shun Sakai
5221d723ca
Added patool completions
2019-09-01 17:28:46 -07:00
ridiculousfish
9fd9f70346
Restore terminal modes after sending SIGCONT
...
Fixes #2214
Thanks to @bruce-hill for the patch.
2019-09-01 17:24:23 -07:00
Johannes Altmanninger
068aba1902
remove redundant call (done in constructor of completion_t)
2019-08-31 12:05:49 -07:00
Shun Sakai
42c6b9c176
Implemented the completions of all options of git restore
and git switch
( #6054 )
...
* Implemented the completions of all options of `git restore` and `git switch`
* Apply requested changes
2019-08-30 11:31:35 +02:00
Sergei Morozov
753f49dba9
Added git rebase --rebase-merges[=(rebase-cousins|no-rebase-cousins)] to completion
...
See https://git-scm.com/docs/git-rebase/2.18.0#git-rebase--r
2019-08-27 22:04:55 +02:00
LawAbidingCactus
35b64b0470
add completions for qubes-gpg-client
2019-08-27 15:20:07 +08:00
Mahmoud Al-Qudsi
af4b54e635
Change WSL version check to a hard error, but include a bypass
...
Instead of warning (debug level 1), we now emit an error (debug level 0) if a known bad version of
WSL is detected. However, `FISH_NO_WSL_CHECK` can now be defined to skip both the check and the
startup message.
2019-08-25 18:50:17 -05:00
Mahmoud Al-Qudsi
44022e65c2
Revert "Remove the WSL warning"
...
This reverts commit 5101bdeb9f
.
2019-08-25 18:29:46 -05:00