Fabian Homborg
9be7288fab
expansion: Only clamp ranges when not forcing direction
...
This caused `$var[2..-1]` to still expand to $var[1] if only one
element was given.
Fixup for #4965 .
Fixes #5187 .
2018-09-15 11:07:29 +02:00
Fabian Homborg
9c2dff76cb
Remove some of the wait tests
...
This cuts the time down to about half. It's still the longest part of
the test suite, but that's probably unavoidable.
2018-09-15 11:07:29 +02:00
maxried
45a2ff4191
Update status.fish
...
Even though breakpoing sounds funnier, the completion should correctly be breakpoint.
2018-09-14 07:48:22 +08:00
ridiculousfish
ce174afabf
Rename my_env_set to more useful env_set_reporting_errors
2018-09-11 09:32:44 -07:00
Muttley
0f141b6ccf
pacaur: recognize *.pkg.tar as valid package extension
2018-09-11 13:26:27 +02:00
Jason
5d59c6a1cd
Correct argument order for signal handler example
2018-09-10 19:05:06 +02:00
ridiculousfish
56002abc61
Paginate history in fish_config
2018-09-09 01:01:03 -07:00
ridiculousfish
daf520db0a
Reformat all files
2018-09-08 22:19:05 -07:00
ridiculousfish
6e6fcda8e2
Get history working in web_config again
2018-09-08 22:13:54 -07:00
ridiculousfish
b9c50e400f
Fix abbreviations in web_config
2018-09-08 21:34:54 -07:00
Tang King Fai
0e6cc13d0d
Update cargo completion ( #5172 )
...
* Update cargo completion
* Show sub-command's description for completion
2018-09-07 15:29:48 +02:00
Fabian Homborg
d00c196613
Merge pull request #5173 from cdluminate/master
...
completions: ninja: "ninja -f" should be followed by a *.ninja file.
2018-09-07 14:48:50 +02:00
Mo Zhou
add24f96a9
completions: ninja: "ninja -f" should be followed by a *.ninja file.
2018-09-07 08:00:37 +00:00
ridiculousfish
ca61fc1bf8
Stop retrying close() on EINTR
...
https://lwn.net/Articles/576478/
http://austingroupbugs.net/view.php?id=529
https://sourceware.org/bugzilla/show_bug.cgi?id=14627
2018-09-05 21:49:31 -07:00
Curtis Jiang
06e5194092
add OpenWrt and opkg support
...
Signed-off-by: Curtis Jiang <jqqqqqqqqqq@qq.com>
2018-09-04 01:47:30 -07:00
ridiculousfish
8b277e711e
Large refactor of exec.cpp
...
Break up that monster function.
2018-09-03 15:57:11 -07:00
ridiculousfish
eca4d113c6
Factor do_fork into a real function
2018-09-03 14:33:53 -07:00
ridiculousfish
8e2d207869
Report duration of each test
2018-09-03 14:13:31 -07:00
ridiculousfish
2a62e18635
Remove child_forked and child_spawned
...
These variables weren't used for anything.
2018-09-03 13:31:03 -07:00
ridiculousfish
f7a020ad33
Rename launch process to exec_process_in_job
...
This avoids a name collision with another launch_process
2018-09-03 11:18:39 -07:00
ridiculousfish
48c510572b
Factor out launch_process from exec.cpp
...
Makes the monster function slightly more tractable.
2018-09-01 14:54:23 -07:00
ridiculousfish
753639aa9c
Reduce the scope of pid in exec_job
2018-09-01 14:39:32 -07:00
ridiculousfish
ec9c592edc
Adopt autoclose_fd_t in exec_job
2018-09-01 14:27:58 -07:00
ridiculousfish
274c77cf0c
Add autoclose_fd_t for helping to manage file descriptors
2018-09-01 14:27:36 -07:00
ridiculousfish
9269a5e0a8
Clean up abbreviation implementation a bit
2018-09-01 13:18:34 -07:00
ridiculousfish
051605b593
Cleap up owning_lock interface
...
Use some operator overloading to avoid the weird interface of acquired_lock.
2018-09-01 13:11:42 -07:00
ridiculousfish
1a9e3761ae
Add highlighting tests for empty variables
2018-09-01 12:05:52 -07:00
ridiculousfish
9bce3f4741
Merge branch 'variables_in_commands'
...
This merges support for allowing variables in commands.
2018-09-01 12:02:34 -07:00
ridiculousfish
7bd26f9ff0
Teach syntax highlighting about variables in commands
2018-09-01 12:00:56 -07:00
ridiculousfish
865a4647ae
Allow variables in commands
...
Syntax highlighting for these coming in next commit.
Fixes #154
2018-09-01 12:00:56 -07:00
ridiculousfish
59d78e8afa
Clean up syntax highlighting test
2018-09-01 10:17:57 -07:00
David Adam
1e0fab4fa4
git_version_gen: add support for out-of-tree tarballs
...
Closes #4122 .
2018-08-28 23:10:24 +08:00
Vicente Reyes
3e9453840f
complete stack built binaries
2018-08-26 17:00:04 -07:00
ridiculousfish
de2b0d1ae8
Remove some #if 0 code
2018-08-26 02:36:28 -07:00
ridiculousfish
2a680ebd12
Fix some miscellaneous warnings
2018-08-26 00:43:40 -07:00
ridiculousfish
67c4da9dbf
Correct formatting in argparse
2018-08-25 16:18:49 -07:00
ridiculousfish
4abdf8c301
Some refactoring of argparse implicit ints
2018-08-25 16:14:16 -07:00
ridiculousfish
d046452cdf
Increased const correctness in argparse
2018-08-25 16:09:04 -07:00
ridiculousfish
9f436c3750
Clean up bits of wgetopter_t interface
2018-08-25 16:09:04 -07:00
Mahmoud Al-Qudsi
2cccc9b589
Add changelog note about background process reaping on exec
2018-08-22 12:26:38 -05:00
David Adam
ad4913fd61
README.md: add optional dependencies for yarn, bower and npm completions
2018-08-21 14:48:32 +08:00
David Adam
a78a480c53
CHANGELOG: whitespace fixes
2018-08-21 14:47:08 +08:00
Mahmoud Al-Qudsi
1b1bc28c0a
Protect against loss of background jobs on exec
...
`exec` now exhibits the same behavior as `exit` and prompts the user to
confirm their intention to end the current process if there are
background jobs running. Running `exec` again immediately thereafter
will force the exec to go through.
Additionally, background jobs are reaped upon exec to prevent process
leaking (same as `exit`).
2018-08-20 22:52:47 -05:00
ridiculousfish
54d8d169b5
Remove some compatibility juk from wgetopt
2018-08-18 17:22:55 -07:00
ridiculousfish
d9f34147c3
builtins to only acquire terminal if owned by their pgroup
...
Fix #5133 changed builtins to acquire the terminal, but this regressed
caused fish to be stopped when running in background via `sudo fish`.
Fix this by only acquiring the terminal if the terminal was owned by the
builtin's pgroup.
Fixes #5147
2018-08-18 16:56:01 -07:00
ridiculousfish
cbcabf6d00
Add support for fish_ambiguous_width
...
fish_ambiguous_width is a variable which controls the width of ambiguous CJK
characters.
Fixes #5149
2018-08-18 15:38:05 -07:00
ridiculousfish
d40a82b4d3
Mark reader.cpp jump as static
2018-08-18 14:48:46 -07:00
Chris
1d68b52cbc
Add till/repeat/reverse jump bindings
...
- Add support for:
- Jumping to the character before a target.
- Repeating the previous jump (same direction, same precision).
- Repeating the previous jump in the reverse order.
- Enhance vi bindings.
2018-08-18 14:42:29 -07:00
Fabian Homborg
7606bfc2e5
Merge pull request #5145 from antonv6/hg-completion
...
[Ready] Update Mercurial completion
2018-08-17 16:34:35 +02:00
Mahmoud Al-Qudsi
1c59a3f1a8
Fix traversal order of tokens in history completion
...
Fixes an issue introduced by e51e854
. Closes #5150 .
2018-08-16 14:07:38 -05:00