Ian Brunelli
f456404482
Simplify flatversion extraction
2020-02-13 22:00:23 -03:00
Ian Brunelli
7516c408ae
Add description to flatpak remote completion
2020-02-12 16:54:54 -03:00
Ian Brunelli
e0551a184d
Add completion for flatpak enter and kill
2020-02-12 16:39:50 -03:00
Ian Brunelli
6d2537d2d9
Some cleanup as suggested
2020-02-12 16:31:21 -03:00
Ian Brunelli
8ebd6ddd92
Add completion for new flatpak commands
2020-02-12 07:36:03 -03:00
Ian Brunelli
d79ea5a898
Fix flatpak completion for versions >= 1.2
2020-02-12 06:21:29 -03:00
Collin Styles
ea8a2b2dda
Correct list-language
to list-languages
in bat completions
2020-02-10 21:38:59 +01:00
Johannes Altmanninger
be06f842a2
Allow to omit indices in index range expansions
...
Missing range limits in, say $PATH[..] default to the first/last
element, just like Python/Go/Rust slices.
2020-02-10 18:38:01 +01:00
Johannes Altmanninger
4c66e69cd9
Fixup b31b52c2
which wasn't right for backward-delete-char
2020-02-09 10:27:27 +01:00
Johannes Altmanninger
b31b52c272
Fix another egregious regression from 8a033b9f3
Add undo
...
The first character in the commandline could not be deleted with ^D.
2020-02-09 05:17:27 +01:00
ridiculousfish
6bf9ae9aeb
Fix up --on-job-exit caller
...
The `function --on-job-exit caller` feature allows a command substitution
to observe when the parent job exits. This has never worked very well - in
particular it is based on job IDs, so a function that observes this will
run multiple times. Implement it properly.
Do this by having a not-recycled "internal job id".
This is only used by psub, but ensure it works properly none-the-less.
2020-02-08 16:23:25 -08:00
ridiculousfish
93fc0d06d4
Rename event_type_t::job_exit to event_type_t::caller_exit
...
"job_exit" events, despite their name, can only be created via
the '--on-job-exit caller' misfeature of function. Rename it to make it
clear that this event type is specifically for caller-exit.
2020-02-08 16:08:26 -08:00
ridiculousfish
91df645c62
Make job_control a constant property of job_t
...
It no longer changes.
2020-02-08 14:14:37 -08:00
ridiculousfish
ce88e8739f
Fix some speeling and improve a comment.
2020-02-08 13:15:33 -08:00
ridiculousfish
fba3c83ba5
Eliminate yet more calls to principal_parser()
...
In particular, remove job_t::from_job_id
2020-02-08 12:47:13 -08:00
ridiculousfish
f1f97b6476
Eliminate more calls to principal_parser()
...
Require a parser to get a job from its pgid.
2020-02-08 12:46:56 -08:00
ridiculousfish
d957f6b302
Centralize some calls to principal_parser()
...
Eventually perhaps we can get rid of the notion altogether.
2020-02-08 12:33:47 -08:00
Fabian Homborg
f67a9f2ee7
Port another part of test1 to littlecheck
...
This time it's redirections
2020-02-08 18:21:05 +01:00
Fabian Homborg
5e6c9508e9
Port a part of test1 to littlecheck
...
Test1 is a grab bag of stuff, so we need to separate it.
This part is concerned with for-loops, so we move it to loops.fish
2020-02-08 17:49:02 +01:00
Fabian Homborg
ee8ca246f8
Port test8 to littlecheck
...
This one tests a bunch of separate stuff, so we put it into a few
different files.
The main, new one is "slices.fish", which tests various index expressions.
2020-02-08 15:55:10 +01:00
Fabian Homborg
22edf3213f
Port "test4" to littlecheck
...
It has to do with scoping, so call it "scoping.fish".
2020-02-08 15:54:58 +01:00
Fabian Homborg
6daab9c41f
Port while test to littlecheck
...
And we're gonna add more loop stuff, so port it to a file called "loop.fish"
2020-02-08 15:21:22 +01:00
Fabian Homborg
0ddbd8d318
Fix typo in bad options test
...
This had a stray `}`, which made one possible message:
unknown option -- Z}
with a literal `}`, which broke on NetBSD, which has that
message.
2020-02-08 13:30:48 +01:00
Fabian Homborg
cdf6260d70
Port fish_opt tests to littlecheck
...
It's a wrapper for argparse, so just put it in argparse.fish.
2020-02-08 12:34:43 +01:00
Fabian Homborg
849f27912e
Port parameter_expansion test to littlecheck
...
Just put it in expansion.fish.
2020-02-08 11:16:53 +01:00
Fabian Homborg
e9b4f5f0ab
Replace references to ".../test/root/bin/fish" in the checks
2020-02-08 11:06:36 +01:00
Fabian Homborg
884f347be6
Port "test6" to littlecheck
...
It's related to `complete`, so put it in complete.fish
2020-02-08 10:55:59 +01:00
Fabian Homborg
109a8b07a7
Port "test5" to littlecheck
...
Put the switch-related stuff in switch.fish, and the wildcard-related
stuff in wildcard.fish.
2020-02-08 10:53:50 +01:00
Fabian Homborg
e3ccc310e2
Port read test to littlecheck
...
This was a tad annoying because of all the messing with variables, and
because I insisted on getting it all into the existing read.fish.
2020-02-08 10:38:43 +01:00
Fabian Homborg
bf7629462a
Port some small tests to littlecheck
2020-02-08 10:38:11 +01:00
Fabian Homborg
8bd97d087d
Port set test to littlecheck
...
Just add it to set.fish. There may be some duplicated ones here, but
that's for another time.
2020-02-08 09:58:27 +01:00
Fabian Homborg
0ddf04b637
Port contains_opt test to littlecheck
...
And make it one file.
2020-02-08 09:51:52 +01:00
Fabian Homborg
7c2d7387d0
Port complete_directories test to littlecheck
2020-02-08 09:48:41 +01:00
Fabian Homborg
2fa8ae161a
Port jobs test to littlecheck
2020-02-08 09:47:14 +01:00
Fabian Homborg
0fab1ce8b4
Port locale test to littlecheck
2020-02-08 09:38:23 +01:00
Fabian Homborg
f8af262af7
Port some smaller tests to littlecheck
2020-02-08 09:31:49 +01:00
Fabian Homborg
eaf84c553d
Port line-continuation test to littlecheck
2020-02-08 09:31:49 +01:00
Johannes Altmanninger
12a9cb2940
Fix assertion failure on page up / page down
...
I had overlooked {beginning,end}-of-history which don't search.
2020-02-08 08:55:02 +01:00
Fabian Homborg
e40441f901
Port history tests to littlecheck
2020-02-07 20:53:20 +01:00
Fabian Homborg
15d2797ec1
Port pipestatus test to littlecheck
2020-02-07 20:49:42 +01:00
Fabian Homborg
fc884e9cf4
Port function.in test to littlecheck
2020-02-07 20:41:01 +01:00
Fabian Homborg
921fce3a51
math: Complain about unknown *function*, not *variable*
...
We removed variables from tinyexpr, so we shouldn't use that error.
2020-02-07 17:43:22 +01:00
Johannes Altmanninger
8a033b9f3d
Add undo
...
Add the input function undo which is bound to `\c_` (control + / on
some terminals). Redoing the most recent chain of undos is supported,
redo is bound to `\e/` for now.
Closes #1367 .
This approach should not have the issues discussed in #5897 .
Every single modification to the commandline can be undone individually,
except for adjacent single-character inserts, which are coalesced,
so they can be reverted with a single undo. Coalescing is not done for
space characters, so each word can be undone separately.
When moving between history search entries, only the current history
search entry is reachable via the undo history. This allows to go back
to the original search string with a single undo, or by pressing the
escape key.
Similarly, when moving between pager entries, only the most recent
selection in the pager can be undone.
2020-02-07 17:15:17 +01:00
Geoff Nixon
f7edfba5d7
Avoid apropos on macOS 10.15 with man completion
...
Same issue occurs here, as in #6270 (and fixed in 611a658
for `__fish_describe_command.fish`). Same reason. I've just copied the same workaround and changed the function name to match.
2020-02-07 20:52:39 +08:00
David Adam
43edbf4a91
config.fish: drop PATH modifications on Solaris-derived systems
...
Fixes #6556 .
Although present since 2006, fish no longer relies on POSIX-compliant tools to the same degree. This
code causes a platform specific change that makes the tests fail, so remove it.
2020-02-07 20:43:15 +08:00
ridiculousfish
3f6884e5a1
Use move semantics in expand_braces
...
Reduces copying during expansion.
2020-02-06 13:02:28 -08:00
Johannes Altmanninger
440b791b38
Add changelog headers for fish next-minor and add an entry for #6566
2020-02-06 15:48:25 +01:00
David Adam
21f2628c06
fish.spec: group conditionals to correctly detect Fedora
...
Fixes test failures due to glibc-langpack-en not being installed.
2020-02-06 13:15:49 +08:00
David Adam
5a8685b26c
debian packaging: bump Python requirement to 3.5+
...
Work on #6537 .
2020-02-06 12:46:00 +08:00
Jason Nader
fb00d6638e
completions/apt: Add support for filename completions
...
Plus some small fixes.
Fixes #6209
[ci skip]
2020-02-06 02:17:38 +01:00