Fabian Homborg
be0de5e2de
Just define a ":" builtin
...
It's *less code* to define this as a builtin, and it's not going
anywhere. Plus it makes fish just a little more usable without share/config.fish.
2020-04-06 18:55:59 +02:00
ridiculousfish
3df05af809
Revert "Do not prevent multiple tab-completions with the same command line"
...
This reverts commit 41dcf84386
.
This seems to have broken a lot of interactive scenarios.
2020-04-05 19:05:53 -07:00
ridiculousfish
41dcf84386
Do not prevent multiple tab-completions with the same command line
...
The comp_empty variable was assigned a sucecss value, leading fish
to think that the set of completions was empty when it is not.
Fixes #6863
2020-04-05 18:55:28 -07:00
Ron Gebauer
77fb54fa99
In Fish MD5 on BSD now use given String and not -s
...
Signed-off-by: Ron Gebauer <ron.gebauer@raytion.com>
2020-04-05 17:25:02 -07:00
ridiculousfish
866d506d11
Add a fish_test_helper command to print blocked signals
2020-04-05 15:07:42 -07:00
Rosen Penev
385b069eb2
[clang-tidy] remove pointless public
...
Found with readability-redundant-access-specifiers
Signed-off-by: Rosen Penev <rosenp@gmail.com>
2020-04-05 10:13:43 +02:00
Rosen Penev
68467eeca7
[clang-tidy] remove redundant string initialization
...
Found with readability-redundant-string-init
Signed-off-by: Rosen Penev <rosenp@gmail.com>
2020-04-05 10:13:13 +02:00
Rosen Penev
473a5250ae
[clang-tidy] change several member functions to const
...
Found with readability-make-member-function-const
Signed-off-by: Rosen Penev <rosenp@gmail.com>
2020-04-05 10:13:13 +02:00
Rosen Penev
312b575424
[clang-tidy] numeric literals to uppercase
...
Found with hicpp-uppercase-literal-suffix
Signed-off-by: Rosen Penev <rosenp@gmail.com>
2020-04-05 10:13:13 +02:00
Rosen Penev
194fa4a548
[clang-tidy] performance
...
Found with performance*
Signed-off-by: Rosen Penev <rosenp@gmail.com>
2020-04-05 10:13:13 +02:00
Rosen Penev
8d3377e923
[clang-tidy] Use C++ using instead of typedef
...
Found with modernize-use-using
Signed-off-by: Rosen Penev <rosenp@gmail.com>
2020-04-05 10:13:13 +02:00
Rosen Penev
be036c443e
[clang-tidy] use bool literals
...
Found with modernize-use-bool-literals
Signed-off-by: Rosen Penev <rosenp@gmail.com>
2020-04-05 10:13:13 +02:00
Rosen Penev
27f607ae8b
[clang-tidy] use range based loop
...
Found with modernize-loop-convert
Signed-off-by: Rosen Penev <rosenp@gmail.com>
2020-04-05 10:13:13 +02:00
Rosen Penev
220f0a132d
[clang-tidy] use auto when casting
...
Found with modernize-use-auto
Signed-off-by: Rosen Penev <rosenp@gmail.com>
2020-04-05 10:13:13 +02:00
Fabian Homborg
b42445e675
Restyle create_manpage_completions
2020-04-05 10:13:02 +02:00
Lior Stern
d7aeac3c61
Add clang-tidy to build_tools/lint.fish
2020-04-04 14:47:58 -07:00
Lior Stern
321e1ed26a
Check that parser is not nullptr before calling libdata.
...
Avoids a possible nullptr dereference in
parse_execution_context_t::check_end_execution
2020-04-04 14:47:58 -07:00
Lior Stern
1b23e5471d
check the value of nodeptr in tnode_t::source_range.
...
Avoids a possible nullptr dereference
2020-04-04 14:47:58 -07:00
Lior Stern
d6e2110cdf
Add a clang-tidy file.
2020-04-04 14:47:58 -07:00
Soumya
639ea3caa0
Update docs for fish_kill_signal
, use "job" rather than "command"
2020-04-04 19:23:44 +02:00
Johannes Altmanninger
89c4ff9eae
Fix some inconsistencies in docs
2020-04-04 19:19:50 +02:00
Johannes Altmanninger
fd18cba4bc
Add completions for builtin wait
2020-04-04 19:19:50 +02:00
Johannes Altmanninger
bd91497de2
Refactor read_init, it is not meant to fail
2020-04-04 19:19:50 +02:00
Fabian Homborg
af03f2ce6d
create_manpage_completions: Switch to argparse
...
This is a lot cleaner and more easily extendable.
2020-04-04 15:30:09 +02:00
Fabian Homborg
6e95e1d79d
create_manpage_completions: Change "--save" to "--keep"
2020-04-04 15:30:09 +02:00
JanczarKnurek
f212aba174
Allow not to remove files from destination dir
...
Signed-off-by: JanczarKnurek <jacek@beit.tech>
2020-04-04 15:30:09 +02:00
Jason Nader
30459b053f
more dogfood
2020-04-04 15:30:09 +02:00
Jason Nader
eaf313f755
Dogfooding to show off use case
2020-04-04 15:30:09 +02:00
Jason Nader
21bbd2ecb4
Return 1 if non-existent field is given
2020-04-04 15:30:09 +02:00
Jason Nader
1329a40e87
Allow simple ranges to be specified for --fields
2020-04-04 15:30:08 +02:00
Jason Nader
46dfc5ce0d
IWYU keeps falsely flagging this
2020-04-04 15:30:08 +02:00
Jason Nader
7cb1d3a646
Add string split --fields
2020-04-04 15:30:08 +02:00
Fabian Homborg
a29bc127ce
Move the invocation checks to invocation.fish
...
These where separate files so we could use the %s substitution to run
that fish, but since discovering setting $fish that
workaround isn't necessary.
2020-04-04 13:31:48 +02:00
Fabian Homborg
d54609bd63
Skip interactive tests on github actions for now
...
Github actions doesn't run this in a terminal, so the `fish -i` tests won't really work.
But still, it might be nicer than Travis.
2020-04-04 13:31:48 +02:00
Fabian Homborg
66b0fa72aa
Add github actions CI
2020-04-04 13:31:48 +02:00
Fabian Homborg
5bc3ec846e
docs: Reword variable scope section
...
Should be a bit easier to read.
[ci skip]
2020-04-04 13:17:12 +02:00
Simon Ser
e3684526f2
Change extra_*dir options to use prefix instead of /usr/local
2020-04-04 13:07:54 +02:00
Simon Ser
d9d3557fcf
Use pkg-config variables
...
This allows all variables to be set properly when the prefix or datadir changes.
The generated .pc file looks like this:
prefix=/usr/local
datadir=${prefix}/share
completionsdir=${datadir}/fish/vendor_completions.d
functionsdir=${datadir}/fish/vendor_functions.d
confdir=${datadir}/fish/vendor_conf.d
Name: fish
Description: fish, the friendly interactive shell
URL: https://fishshell.com/
Version: 3.1.0-402-g75ae172ba228-dirty
Closes: https://bugs.archlinux.org/task/65904
2020-04-04 13:07:54 +02:00
Delapouite
6c3732b99f
doc: add kbd markup to Tab Completion section
2020-04-04 10:45:13 +02:00
Delapouite
b8281f1284
doc: homogenize commands titles
2020-04-04 10:44:53 +02:00
Johannes Altmanninger
4884a4080e
completions: pass the correct args to git and ninja
2020-04-02 09:44:15 +02:00
Soumya
61a9cdaa74
Add $fish_kill_signal
to track the signal that terminated a command.
...
Set to `0` if the command exited normally.
2020-04-02 09:32:32 +02:00
exploide
67eaefeb82
added openssl completions
2020-04-02 09:31:13 +02:00
Delapouite
fb5c64641c
feat(completions): add long 'list' option for prevd and nextd
2020-04-02 09:26:15 +02:00
Johannes Altmanninger
66ae1a1edb
Add -h flag to builtin wait
2020-04-02 09:25:08 +02:00
David Adam
7206be3e47
fish.spec: stop running tests on RHEL 6
...
Due to RHEL's very old Python and other issues, keeping the tests
running is more work than it's worth. Switch to making sure the compiled
binary runs only.
2020-04-01 17:17:16 +08:00
239
1792be096a
Merge branch 'master' into completions-update
2020-03-31 14:43:40 +02:00
jneem
3cf1de1b7f
Suggest string split -n for separating on spaces.
...
At least on some versions/systems, pkg-config outputs a trailing
space. Since the usually-desired behavior isn't to have a blank argument,
recommend using `string split -n` instead of `string split`.
Fixes #6836 .
[ci skip]
2020-03-30 20:42:39 +02:00
Delapouite
9459958c61
feat(completion): add missing -P option to read command
2020-03-30 19:37:42 +02:00
Johannes Altmanninger
33d963dad9
Make job a background job when its child process is stopped
...
Fixes #6830
For some reason, with this change, typing "vi", Control-Z, and 2 x Control-D,
results in the cursor not moving correctly, but this only
seems to happen when starting fish from a fish that doesnt have this fix.
I hope that is a temporary glitch.
2020-03-30 07:32:57 +02:00