Daniel Bretoi
575fdb5492
add missing flag
2019-08-06 20:19:12 +02:00
Fabian Homborg
2c32885a2d
Fix build on old gcc by using old-school initialization
...
It appears Gcc 4.8 doesn't get this particular expression, so we just
revert to the old `type foo = bar` style from the new `type foo{bar}`.
Fixes #6027 .
2019-08-05 18:08:13 +02:00
adiabatic
9b89b820da
Add completions/src.fish
2019-08-05 12:18:29 +02:00
ridiculousfish
29dede8139
Migrate parse_util_detect_errors to a free function
2019-08-04 14:49:56 -07:00
Fabian Homborg
2c3bc1e857
Fix grep wrapper completions
...
[ci skip]
2019-08-04 15:34:33 +02:00
Fabian Homborg
3296bb6c3b
Fix apt-show-versions command name
...
[ci skip]
2019-08-04 15:34:33 +02:00
Fabian Homborg
3fd567749c
Fix latex tool completions
...
Again the wrapping was used the wrong way around.
(also why on earth are there like fifty of these darn things?)
[ci skip]
2019-08-04 15:34:32 +02:00
Fabian Homborg
ab1b2b84f6
Move netcat completions to an autoloadable name
...
The file was named "netcat", but it completes a tool named "nc", so it
wouldn't be loaded.
[ci skip]
2019-08-04 15:34:32 +02:00
Fabian Homborg
8ea034837d
Remove pacsrv completions
...
These have been broken for 4 years (completed `pacsrc` instead), and I
can't find the tool anywhere.
[ci skip]
2019-08-04 15:34:32 +02:00
Fabian Homborg
0fc4b415ac
Fix rgrep completions
...
This used the arguments the wrong way around.
2019-08-04 15:34:32 +02:00
adiabatic
75a6ad602f
completions/canto.fish: s/cnato/canto/
2019-08-04 15:21:41 +02:00
mk2
0083555925
Move __fish_complete_abook_formats to abook
2019-08-04 15:20:32 +02:00
Shun Sakai
67cf50eda4
Added completions of languages developed by Microsoft
...
* csc, csi, vbc - .NET Compiler Platform (Roslyn)
* fsharpc, fsharpi - F# compiler and REPL environment
* tsc - TypeScript compiler
2019-08-03 14:47:59 -07:00
ridiculousfish
73bf60754c
Don't assign jobs to fish's pgrp if there's no external process
...
Fixes #6011
2019-08-03 14:43:55 -07:00
Klaus Alexander Seistrup
28a17c4b05
Document that the : command now always exits successfully
2019-08-03 18:14:12 +02:00
Klaus Alexander Seistrup
7046d251d9
Make sure nop command always suceeds
2019-08-03 18:14:12 +02:00
ridiculousfish
95c97619c6
Use cbegin() in one place in reader
2019-07-31 14:23:41 -07:00
Mark Stosberg
d2455bdd5a
Document alternates for common arrow key usage.
...
Arrow keys are often not conveniently located on keyboards, so the use of arrow keys for common keyboard shortcuts can be a turn-off for some.
I found that fish supports alternate keybindings for these cases but I didn't seem them documented in these places where the arrow keys versions are highlighted.
2019-07-31 14:09:43 +02:00
Fabian Homborg
6500765256
Allow switch
with something that expands to nothing
...
Meaning empty variables, command substitutions that don't print
anything.
A switch without an argument
```fish
switch
case ...
end
```
is still a syntax error, and more than one argument is still a runtime
error.
The none-argument matches either an empty-string `case ''` or a
catch-all `case '*'`.
Fixes #5677 .
Fixes #4943 .
2019-07-31 14:08:28 +02:00
Fabian Homborg
57ffd18787
tests/checks/set: Make a temporary XDG_CONFIG_HOME
...
This test uses universal variables, and so it can fail when run
multiple times.
It might be a good idea to do this in general, but for now let's just
try it here.
2019-07-31 13:52:36 +02:00
David Adam
38f6296fdc
README: add Xcode install instructions
...
Closes #5961 .
[ci skip]
2019-07-31 09:17:59 +08:00
ridiculousfish
5b90fa0bda
Add a missing reference to a range-based for loop
2019-07-29 21:39:05 -07:00
Miha Filej
ec2ff8de24
docs/bind: Mention history-token-search-*
...
[ci skip]
2019-07-29 19:08:26 +02:00
ridiculousfish
a33f0eb636
Clean up some logic around when process exit events are sent
2019-07-28 14:36:57 -07:00
ridiculousfish
a40a4c0c54
Add some new tricks to fish_test_helper
...
Allow fish_test_helper to report if it is in the foreground, and to SIGINT
its parent.
2019-07-27 11:00:07 -07:00
David Adam
8bb343879e
docs: update set --show synopsis
...
As reported on the mailing list in Message-ID:
<CAK72cnbc7qW=Meuvr=vBRyok0syFSC5nitsTKUpbs89XpFCoDg@mail.gmail.com>
2019-07-25 20:22:41 +08:00
ridiculousfish
822b53c67a
Don't color a whole string invalid because of an unclosed quote
...
When syntax highlighting a quoted string, if the string is not closed,
only show the opening quote as an error, not the whole string.
2019-07-24 12:43:47 -07:00
ridiculousfish
c0053ceef5
highlighter_t to return color array directly
...
Saves some copying and allocations.
2019-07-24 12:42:18 -07:00
Frederik Gladhorn
ffcf5a5e03
completions/git: Add git cherry
...
See for example: https://git-scm.com/docs/git-cherry
git cherry is quite helpful when trying to findout if merges between
branches are complete, when there were cherry-picks in addition to
merges.
2019-07-24 16:02:30 +02:00
ridiculousfish
554ee240b3
Correct handling of explicitly separated output when all elements are empty
...
Previously when propagating explicitly separated output, we would early-out
if the buffer was empty, where empty meant contains no characters. However
it may contain one or more empty strings, in which case we should propagate
those strings.
Remove this footgun "empty" function and handle this properly.
Fixes #5987
2019-07-21 14:00:27 -07:00
ridiculousfish
e8c6de8055
Correctly export empty universal variables
...
Fixes #5992
2019-07-21 12:45:29 -07:00
ridiculousfish
01dff25f62
Remove test3
...
This is now handled by littlecheck
2019-07-21 12:18:28 -07:00
ridiculousfish
07d1607e58
Port tests/test3.in to littlecheck
...
This just tests 'set'
2019-07-21 12:18:28 -07:00
ridiculousfish
97c4794424
Properly mark tests_dir as a dependency of test_prep
...
Allows for running a subset of tests immediately after build system config.
2019-07-21 11:21:50 -07:00
ridiculousfish
1f854ec284
Accept a pwd in resolve_file_redirections_to_fds
...
Conceptually allow multiple of these to run in parallel
2019-07-20 17:25:25 -07:00
Fabian Homborg
9e6ae1cbef
completions/git: Fix error with git config
...
This passed "--get" when it should have been "get".
Fixes #6000 .
[ci skip]
2019-07-20 14:25:45 +02:00
Fabian Homborg
2f86c3d447
docs: Mention unicode for fish_emoji_width
...
[ci skip]
2019-07-19 15:29:56 +02:00
adiabatic
6ca56fe0cb
tmutil.fish: Add completions for local-snapshots subcommands ( #5995 )
...
* tmutil.fish: Add local-snapshot subcommands
* tmutil.fish: Add completion for thinlocalsnapshots
* tmutil.fish: Run fish_indent
* tmutil.fish: Remove duplicate destinationinfo
2019-07-17 08:40:15 +02:00
ridiculousfish
8ec568d21f
Add some tests to path_apply_working_directory
2019-07-15 17:56:06 -07:00
Fabian Homborg
ef403129e4
fish_vi_key_bindings: Remove duplicate \cc binding
...
Already done in the shared bindings.
[ci skip]
2019-07-15 21:04:23 +02:00
Fabian Homborg
33dbd98200
Remove x-bit from function
2019-07-15 21:02:08 +02:00
Fabian Homborg
56e122866c
fish_svn_prompt: Shorten a return
2019-07-15 21:02:08 +02:00
Per Bothner
2dcaf4f5c0
Emit 'fish_cancel' at end of __fish_cancel_commandline.
...
This helps with shell integration - see issue #5973
"shell-integration - how distringuish winch repaint from ctrl-c cancel".
2019-07-15 21:01:49 +02:00
Fabian Homborg
47e9e8ab8a
fish_vcs_prompt: Stop at first success
...
Closes #5980 .
2019-07-15 17:32:22 +02:00
Mahmoud Al-Qudsi
90882ca9ee
[docs] Clarify behavior of --no-scope-shadowing
and variable lifetimes
2019-07-13 22:47:04 -05:00
Mahmoud Al-Qudsi
57508b46d2
[docs] Fix build warning plus the rendering of the escaped space
...
Use a `:code:` role for the escaped space, it avoids the nastiness of
the whitespace mangling in inline literals.
2019-07-13 22:33:55 -05:00
ridiculousfish
8181883111
Minor refactoring of logic around when a job wants to claim the terminal
...
Introduce should_claim_terminal() which encapsulates an && exprsesion which
was previously repeated a lot.
2019-07-12 13:31:56 -07:00
ridiculousfish
d577eb4aaa
Only use the global fish_complete_path and fish_function_path
...
Prior to this fix, fish would attempt to react if a local fish_complete_path
or fish_function_path were set. However this has never been very well tested
and will become impossible with concurrent execution. Always use the global
values.
2019-07-12 12:40:12 -07:00
Mahmoud Al-Qudsi
7ee675afcf
Update aws
and aws s3
completions
...
Improve handling of switches interjected between the commands, and
support for completing buckets automatically for secondary+ parameters
to `aws s3`.
2019-07-11 21:22:25 -05:00
ridiculousfish
cdcea0f00d
Port setenv tests to littlecheck
2019-07-09 10:02:50 -07:00