zabereer
da2925bad7
add $pipestatus
to classic_vcs.fish prompt
2019-03-04 18:25:18 +00:00
zabereer
0923712e3e
add $pipestatus
to informative_vcs.fish prompt
2019-03-04 18:15:04 +00:00
David Adam
08fd8b6472
cmake: fix prebuilt documentation detection and installation
2019-03-04 22:06:09 +08:00
ridiculousfish
89a7cc5da3
Switch s_write to accepting const vector & instead of raw pointers
2019-03-03 18:49:57 -08:00
ridiculousfish
ccbc9d57f2
Remove reader_data_t::next
...
It's no longer used
2019-03-03 18:14:41 -08:00
ridiculousfish
9b9c1aa745
Fix some unused variable warnings
2019-03-03 18:06:31 -08:00
ridiculousfish
717ac9a8d5
Switch highlight_spec_t to a struct
...
Rather than a janky bitmask, use a real struct with real fields.
2019-03-03 18:04:22 -08:00
ridiculousfish
d165d1df27
Remove highlight_modifier_sloppy_background
...
It's no longer ever set
2019-03-03 17:56:08 -08:00
ridiculousfish
43a11af5e4
Reorganize reader.cpp to separate te current_data users from reader_data_t
2019-03-03 15:49:56 -08:00
ridiculousfish
c09544b288
Migrate more functions to instance methods on reader_data_t
2019-03-03 15:10:47 -08:00
ridiculousfish
29db076f4a
exec_prompt to be an instance method on reader_data_t
2019-03-03 14:38:53 -08:00
ridiculousfish
7ff4b5e5fe
Switch highlighting to instance methods on reader_data_t
2019-03-03 14:34:52 -08:00
ridiculousfish
e477b99a8b
Switch more autosuggestions to instance methods on reader_data_t
2019-03-03 14:30:32 -08:00
ridiculousfish
b014c327a2
reader_data_t to become enable_shared_from_this
...
For background operations such as autosuggestions, we need a way for the
completion handler to keep the reader_data alive.
2019-03-03 14:21:15 -08:00
ridiculousfish
c334a41f96
Switch accept_autosuggestion to an instance method on reader_data_t
2019-03-03 14:11:09 -08:00
ridiculousfish
d7a156e7d9
Switch clear_pager to an instance method on reader_data_t
2019-03-03 14:09:23 -08:00
ridiculousfish
164c5b1c18
Migrate a lot of free functions in reader into reader_data_t
2019-03-03 14:02:27 -08:00
ridiculousfish
ecf51b575e
Clean up input initialization and destruction
2019-03-03 12:59:55 -08:00
ridiculousfish
dc1073f905
reader_set_buffer_maintaining_pager to take reader_data directly
2019-03-03 12:19:46 -08:00
ridiculousfish
0bc08c6197
highlight_search to take reader_data directly
2019-03-03 12:11:32 -08:00
ridiculousfish
b07345ed18
set_command_line_and_position to take reader_data directly
2019-03-03 12:07:51 -08:00
ridiculousfish
968152ddc7
clear_pager to accept reader_data directly
2019-03-03 12:00:09 -08:00
ridiculousfish
e11c3f352f
Clean up handle_child_status
...
Now that we only call waitpid() on specific processes, we no longer need
to search to find the process returned by waitpid.
2019-03-03 11:47:32 -08:00
radek-sprta
261d48367d
Add completions for Mariner ( #5718 )
...
* Add completions for Mariner
* Remove unnecessary characters
2019-03-03 20:25:31 +01:00
Fabian Homborg
8939a7ba7a
completions/ipset: Don't error on loading
...
`ipset list --name` is a privileged operation, and it prints an
"Operation not permitted" error when done as a normal user.
What's worse, this did it on loading (the command substitution wasn't
quoted), so we'd print the error as soon as you did `ipset `.
Only do the operation when necessary, and don't print the error.
This'll effectively only make it work for root shells (not e.g. `sudo
ipset`), but I don't want to sprinkle `sudo` in the completion.
(Also why does listing stuff require root? That's not how it works
e.g. for ips. But I don't actually know what ipset is for, so maybe
there is a good reason.)
[ci skip]
2019-03-03 12:43:05 +01:00
ridiculousfish
dac5d79059
Switch wait command to use topics
...
Prior to this fix, the wait command used waitpid() directly. Switch it to
calling process_mark_finished_children() along with the rest of the job
machinery. This centralizes the waitpid call to a single location.
2019-03-02 16:58:27 -08:00
ridiculousfish
dc27de8190
Rename reader_interrupted to reader_test_and_clear_interrupted
2019-03-02 15:17:00 -08:00
zabereer
d5c18350a7
use global variables for $pipestatus
in prompts to allow users to customize the look
2019-03-01 19:55:28 +00:00
David Adam
637503cb0a
travis: drop superfluous CXXFLAGS on macOS
...
These have not been required since ASan was moved back to the Linux build.
2019-02-28 21:09:03 +08:00
David Adam
83b4adffc0
make_pkg: get static version if git is not available
2019-02-28 21:08:02 +08:00
David Adam
73d9f80772
cmake: drop obsolete paths for prebuilt documentation
2019-02-28 22:04:54 +11:00
David Adam
9acfe0261b
cmake: install system manpath manpages
...
The build path of these files moved under Sphinx.
2019-02-28 22:03:57 +11:00
David Adam
d0394fd301
configure/Makefile.in: drop Autotools build
...
Removes the autoconf-based build system and its artefacts, updates git metadata and removes the
autoconf-based build from the README.
2019-02-28 22:03:57 +11:00
David Adam
44bb098404
Dockerfile: move to CMake
2019-02-28 22:03:57 +11:00
David Adam
fe79badaef
Travis: move all builds to CMake
2019-02-28 22:03:57 +11:00
David Adam
f5f6e5307d
cmake: add lint/lint-all targets
2019-02-28 22:03:57 +11:00
David Adam
ba64ec6e91
lint: drop CXX argument
...
The "fatal error: 'stddef.h' file not found" error is caused by incomplete installation of IWYU,
which can be fixed directly.
See https://github.com/include-what-you-use/include-what-you-use/issues/100
2019-02-28 22:03:57 +11:00
David Adam
a0f785c90f
build_tools/style: drop guidance to use make
2019-02-28 22:03:57 +11:00
David Adam
e9b853e0c2
make_tarball: use cmake instead of Autotools for doc generation
2019-02-28 22:03:56 +11:00
zabereer
e157ba131b
add $pipestatus
to informative.fish prompt
2019-02-28 06:37:56 +00:00
zabereer
ead26881f0
create __fish_print_pipestatus function to reduce code duplication in other prompts when adding $pipestatus
2019-02-28 06:19:28 +00:00
zabereer
8ebbe67ff1
Use string match
instead of for
loop to simplify classic_status.fish
2019-02-27 06:11:03 +00:00
zabereer
a6f9140963
remove redundant echo from __fish_pipestatus_with_signal.fish
2019-02-27 05:39:17 +00:00
ridiculousfish
1a4bb50cd5
Combine status and pipestatus into statuses_t
...
In most places where we set one, we want to set both. Make this less
error-prone by combining them into a single type statuses_t.
2019-02-26 20:07:37 -08:00
Fabian Homborg
47ff060b89
string: Fix split0 return status
...
It turns out that `string split0` didn't actually ever do any
splitting. The arg_iterator_t already split stdin on NUL, and split0 just
performed an additional search that could never succeed (since
arguments from argv already can't contain NUL).
Let the arg_iterator_t not perform any splitting if asked, and then
let split0 split in 0.
One slight wart is that split0 ignores a trailing NUL, which normal
split doesn't.
Fixes #5701 .
2019-02-26 20:03:40 +01:00
zabereer
378b5d7295
update classic_status.fish prompt to include $pipestatus
2019-02-26 18:27:59 +00:00
zabereer
0071ad0409
add __fish_status_to_signal.fish and __fish_pipestatus_with_signal.fish
2019-02-26 18:09:37 +00:00
Fabian Homborg
ddc0e68f29
functions/fish_update_completions: Stop cleaning up in ~/.config
...
That seems suspect.
It removes files starting with "# Autogenerated", but those files
usually do not show up in ~/.config - they're in ~/.local/share.
So let's be careful and not mess with the user's config.
(I'm pretty sure that the previous commit re-enabled cleanup as the
`~` was quoted before then)
[ci skip]
2019-02-26 09:24:38 +01:00
Fabian Homborg
4b6c682b2d
functions/fish_update_completions: Let the python parse options
...
This did `argparse`, but only handled "--help". Any other options
would be ignored.
Instead, we just pass all the options through to python, and that'll
display help if needed.
This allows passing e.g. `--verbose 1` to help with debugging.
[ci skip]
2019-02-26 09:22:09 +01:00
David Adam
1711883e90
Merge branch 'Integration_3.0.2'
...
Resynchronize the CHANGELOG.
2019-02-26 13:53:22 +08:00