David Adam
aabc208318
Release 3.1b1
2020-01-26 21:21:05 +08:00
David Adam
9b6a5b99a9
CHANGELOG: final work towards 3.1b1
2020-01-25 22:42:12 +08:00
David Adam
8ff0c351a9
vendor_*.d: also create these directories in the prefix
2020-01-25 16:12:20 +08:00
David Adam
81306d3b30
vendor_*.d: include /usr/local by default as "extra" directory
...
Closes #5029 .
2020-01-25 16:12:20 +08:00
239
3e08083d49
Add completions for loginctl and resolvectl ( #6501 )
...
* Add completions for loginctl and resolvectl
* Add #6501
* Fix optional arguments
* Remove placeholder arguments
Fix expected arguments
2020-01-24 18:27:47 +01:00
Aaron Bieber
903fe9de48
webconfig: Use tempfile instead of ~/.cache ( #6522 )
...
OpenBSD uses [unveil(2)](https://man.openbsd.org/unveil ) in chromium and
firefox. This means that things outside of directories like ~/Downloads or /tmp are not visible to the
browsers.
Change webconfig so it uses tempfile.NamedTemporaryFile to create our temp file.
2020-01-23 19:52:26 +01:00
ridiculousfish
dbbe8a2da5
Clarify expand_result_t comments
2020-01-22 11:51:40 -08:00
ridiculousfish
2af710f7c0
Eliminate expand_result_t::wildcard_match
...
This was an internal implementation detail that all callers had to deal
with. Just get rid of it.
2020-01-22 11:49:59 -08:00
Jason Nader
a5d625d389
Stringify j.fish
2020-01-22 17:43:18 +01:00
Jason Nader
2323a5629c
Stringify netctl completions
2020-01-22 17:41:43 +01:00
Jason Nader
1cafc4eff6
Amend comments incorrectly referring to sed
2020-01-22 17:40:31 +01:00
Aaron Bieber
0918b537ac
Get the list of VMs in a less fragile way.
2020-01-22 16:48:02 +01:00
Fabian Homborg
d61c188c3c
Fix xdg mimetype completion
...
This hung when no file existed, and failed to properly find the
directories if they didn't end in a "/".
Fixes #6525
[good for 3.1.0]
2020-01-22 16:33:56 +01:00
ridiculousfish
e398f66772
Run clang-format
2020-01-21 14:43:17 -08:00
Jason Nader
6fb545cf9b
Stringify gpg completions
2020-01-21 17:57:57 +01:00
Jason Nader
13a26a1c65
Remove dropbox
completions
2020-01-21 16:57:27 +01:00
Jason Nader
103a26ffb1
Fix function output on FreeBSD/Cygwin systems
2020-01-21 16:55:37 +01:00
Fabian Homborg
4e931fd967
completions/kill: Offer -SIGNAME
...
E.g. "kill -HUP".
2020-01-20 17:51:59 +01:00
Fabian Homborg
1480865d52
Stringify make_completion_signals
2020-01-20 17:51:59 +01:00
Fabian Homborg
acefa61e8b
Hardcode signal names/numbers on cygwin
...
Work around weirdness in Cygwin's kill implementation.
Fixes #6469 .
2020-01-20 17:51:59 +01:00
David Adam
26f744037a
Revert "Remove Base16 mention from CHANGELOG"
...
Will be in 3.1.0.
2020-01-20 20:13:59 +08:00
Shun Sakai
2035b90bfe
CHANGELOG: Add keepassxc-cli
completions
2020-01-20 20:13:54 +08:00
Jason Nader
f63ae0fb4d
Add missing comment to bower.fish
...
Same comment found in yarn.fish
2020-01-20 19:45:21 +08:00
Fabian Homborg
0e5846ee38
completions/fish: Rename debug-level
...
This was renamed to just "--debug", but missed in the completions.
See #5910
[ci skip]
2020-01-19 13:28:21 +01:00
Fabian Homborg
d972623191
Fix vendor paths without $XDG_DATA_DIRS
...
We'd use $__fish_data_dir, but that already had the "/fish" component,
and then we'd add it again later, so we would try to find vendor
functions in places like
/usr/share/fish/fish/vendor_functions.d
which obviously don't exist.
Instead let's add the "/fish" component to the xdg dirs early, which
also saves us from having to repeat it later.
Fixes #6428
See #6508
[ci skip]
2020-01-19 09:28:56 +01:00
Shun Sakai
f04536637d
Add keepassxc-cli
completions
2020-01-18 12:27:04 -08:00
ridiculousfish
e34e5d88db
Remove Base16 mention from CHANGELOG
...
It's not in 3.1.0.
2020-01-18 12:26:25 -08:00
Greg Anders
e143618aef
Set base16 colors for operator, escape, and match
2020-01-18 12:16:19 -08:00
Greg Anders
1331b32cce
Add Base16 color options to fish_config
2020-01-18 12:16:19 -08:00
ridiculousfish
c14d54032f
Add a cant_wait parameter to iothread_perform
...
Sometimes we must spawn a new thread, to avoid the risk of deadlock.
Ensure we always spawn a thread in those cases. In particular this
includes the fillthread.
2020-01-18 11:51:13 -08:00
ridiculousfish
d38db1bc61
Add a test for deep command substitutions
2020-01-18 11:50:50 -08:00
Johannes Altmanninger
b18f605e4f
Fix completions if previous arg is a variable
...
complete -C'echo $HOM ' would complete $HOM instead of a new token.
Fixes another regression introduced in
6fb7f9b6b
- Fix completion for builtins with subcommands
2020-01-18 20:21:10 +01:00
Fabian Homborg
1643df0d23
Docs: Clean up set_color
...
The wording should now be a bit nicer.
[ci skip]
2020-01-18 18:45:53 +01:00
Fabian Homborg
14fd4570d5
Test using more than 64 threads
...
See #6503
2020-01-18 10:43:59 +01:00
Fabian Homborg
018e51c935
Just hardcode a thread limit of 1024
...
64 is too low (it's actually reachable), and every sensible system should have a limit above
this.
On OpenBSD and FreeBSD it's ULONG_MAX, on my linux system it's 61990.
Plus we currently fail by hanging if our limit is reached, so this
should improve things regardless.
On my linux system _POSIX_THREAD_THREADS_MAX works out to 64 here,
which is just too low, even tho the system can handle more.
Fixes #6503 harder.
2020-01-18 10:30:32 +01:00
Fabian Homborg
ca08cc331b
Use PTHREAD_THREADS_MAX if available
...
Stops us deadlocking on OpenBSD if we need more than 4 threads.
Fixes #6503
2020-01-18 09:07:31 +01:00
Johannes Altmanninger
b62fa53807
set error code on failed command substitution to 255 instead of -1
...
the exit status ought to be in 0-255, e.g. exit -1
2020-01-17 17:36:18 +01:00
Johannes Altmanninger
4170e8cff2
typo
2020-01-17 17:27:23 +01:00
Johannes Altmanninger
05ddda9155
use variable assignments on commandline in completions
...
Fixes #6507
To do: If a variable assignment uses a command substitution that errors,
the error is printed, but without a proper location.
2020-01-17 14:53:35 +01:00
Johannes Altmanninger
c513724d7b
Do not store reference to a temporary
...
Seems to have worked by accident. I could swear that I had fixed this..
2020-01-17 14:49:52 +01:00
ridiculousfish
1da09f2c52
Ensure new job IDs are never smaller than existing running jobs
...
This makes job IDs "monotone" in the sense that newly spawned jobs
always have larger IDs than existing jobs, as requested in #6053
2020-01-16 16:01:29 -08:00
ridiculousfish
1978ac87a1
Remove reader_test_should_cancel
...
Use cancel_checker more pervasively.
2020-01-16 15:21:45 -08:00
ridiculousfish
0f7bba5f0e
Introduce operation_context_t
...
This commit recognizes an existing pattern: many operations need some
combination of a set of variables, a way to detect cancellation, and
sometimes a parser. For example, tab completion needs a parser to execute
custom completions, the variable set, should cancel on SIGINT. Background
autosuggestions don't need a parser, but they do need the variables and
should cancel if the user types something new. Etc.
This introduces a new triple operation_context_t that wraps these concepts
up. This simplifies many method signatures and argument passing.
2020-01-16 15:21:28 -08:00
ridiculousfish
db98ee13a9
Make complete() return the completion list directly
...
Returning it through a pointer was a remnant of pre C++-11 days.
2020-01-16 15:18:50 -08:00
ridiculousfish
4bb18eaf42
Use completion_list_t naming everywhere
...
std::vector<completion_t> -> completion_list_t
2020-01-16 15:18:49 -08:00
ridiculousfish
98e714f98f
clang-format .cpp and .h files
2020-01-16 15:18:28 -08:00
ridiculousfish
6705a2efc6
Migrate a bunch of code out of common.h
...
Put it into wcstringutil, path, or a new file null_terminated_array.
2020-01-15 13:16:43 -08:00
ridiculousfish
273afca3da
Remove some dead code
2020-01-15 11:59:40 -08:00
ridiculousfish
4f01eef88d
Default some ivars in wildcard_expander_t
2020-01-15 11:43:10 -08:00
ridiculousfish
5f130c2d6d
Give wildcard_expand_result_t a real return value
...
Use an enum instead of an int.
2020-01-15 11:11:43 -08:00