ridiculousfish
eaf143dd8a
Introduce owning_lock template
...
Will enable rust-style lock ownership semantics
2017-01-29 18:15:38 -08:00
Fabian Homborg
03e0f1eb21
create_manpage_completions: Try more ways to get manpath
...
Haiku only has `man --path`.
Still doesn't support OpenBSD.
Use $MANPATH if available. This needs to:
- Ignore stderr (we pipe it and throw it away)
- Read the subprocess returncode, since `man --path` is an existing
command that fails instead of a non-existent one (that raises an
exception)
- Properly set up the fallback
Fixes #2194 .
2017-01-29 18:00:48 -08:00
Kurtis Rader
06282f02fd
don't run fish_update_completions in unit tests
...
Running `fish_update_completions` in unit tests is not needed and
hideously expensive. To the point it can cause flakey test behavior.
2017-01-29 18:00:48 -08:00
Kurtis Rader
973097f025
style fixups
2017-01-29 18:00:48 -08:00
ridiculousfish
e52a04e341
Cleanup of LRU cache implementation
...
Switch to CRTP from virtual functions and improve ownership semantics.
It's no longer necessary for clients to use new and delete.
2017-01-29 12:16:42 -08:00
Clément Martinez
61f272495d
Add i3-msg completions
2017-01-28 19:48:57 +01:00
Clément Martinez
0d170222a6
Update french translations
2017-01-28 19:48:00 +01:00
Cristian Prieto
7edfcd5c63
Add more options for git log
...
This closes #3743
2017-01-27 14:13:25 +01:00
Kurtis Rader
5b6cc5af6d
time for another make style-all
...
Gotta keep the entropy (i.e., disorder) from increasing.
2017-01-26 20:05:46 -08:00
ridiculousfish
05d569ee44
Simplify error case of token_type_description and keyword_description
...
Simply return a constant string, since in practice the error case
is not hit
2017-01-26 17:47:24 -08:00
ridiculousfish
a40f491c93
Defeat some miscellaneous warnings in the g++ build
2017-01-26 17:33:48 -08:00
ridiculousfish
e78cefd759
Defeat "enumeral mismatch" g++ warnings through typecasting
2017-01-26 17:18:38 -08:00
ridiculousfish
07c9f0de9d
Set -Wno-missing-field-initializers
...
Suppresses a hugely annoying warning in g++ build for
code initialized via the ={} idiom (which is safe).
2017-01-26 16:34:55 -08:00
ridiculousfish
1efb81456b
Use std::move instead of swap in a few places where it improves clarity
2017-01-26 16:14:50 -08:00
ridiculousfish
fec83fa975
Eliminate moved_ref
...
Use real rvalue references instead
2017-01-26 15:43:46 -08:00
ridiculousfish
1634c9df78
Make job_get_flag and job_set_flag instance methods of jobs
...
Makes them easier to call when you have a smart pointer
2017-01-26 15:06:58 -08:00
ridiculousfish
14fb38f952
Switch job handling to use shared pointers instead of raw pointers
...
Clarifies memory management around allocation of job_ts
2017-01-26 14:47:32 -08:00
ridiculousfish
1d9cc12984
Repair control-C cancellation of loops
...
Commit ab189a75
introduced a regression where we stop breaking out
of loops in response to a child death via a signal. Fix that regression.
Also introduces a test to help ensure we don't regress in the future.
Fixes #3780
2017-01-26 13:41:56 -08:00
Fabian Homborg
98b561929f
Add flatpak completions
...
A bit barebones, but better than nothing.
2017-01-26 22:04:27 +01:00
Fabian Homborg
f513f4e53a
Add completions for xinput
2017-01-26 22:04:27 +01:00
Fabian Homborg
67a661c19f
Fix dconf completions
...
This would always just suggest the commands.
2017-01-26 22:04:27 +01:00
ridiculousfish
2fb1d5900d
Use true and false for bool, not 0 and 1
2017-01-26 12:51:22 -08:00
ridiculousfish
59a3968fd2
Switch to using unique_ptr in env_node_t
...
Makes our memory management of the variable stack more explicit
2017-01-26 12:51:22 -08:00
ridiculousfish
8e577b01bc
Migrate "unspecified scope" logic for set into var_stack_t
2017-01-26 12:51:22 -08:00
Fabian Homborg
7d44f8e871
Add usermod completions
...
Fixes #3775 .
2017-01-26 21:40:05 +01:00
ridiculousfish
8d2dfdf2c9
Migrate environment variable cache into var_stack_t
2017-01-26 12:03:14 -08:00
ridiculousfish
dabc34e0f9
Migrate next_scope_to_search into var_stack_t
2017-01-26 11:32:45 -08:00
ridiculousfish
3525a9d7ee
Make env_node_t's destructor private
...
Migrate responsibility for popping the environment into var_stack_t
2017-01-26 11:20:09 -08:00
ridiculousfish
61887c061b
Migrate responsibility for node creation into var_stack_t
2017-01-26 11:06:03 -08:00
ridiculousfish
e4fd1d5f5a
Wrap up the variable stack in a little struct
...
First step towards cleaning up env.cpp's global variables
2017-01-26 10:38:55 -08:00
ridiculousfish
afe54df843
Eliminate the 'global' var_table_t variable in env.cpp
...
This can always be trivially found from 'global_env'
2017-01-26 10:32:31 -08:00
ridiculousfish
dddb0bb24b
Merge branch 'iothread_perform_lambda'
...
Bravely reintroducing the iothread changes that broke on g++
2017-01-26 10:08:01 -08:00
ridiculousfish
37578d8b39
Add some additional commenting around iothreads
2017-01-26 09:40:18 -08:00
ridiculousfish
2f29473efc
Remove legacy iothread_perform templates
...
We no longer need to have overloads for function pointers.
2017-01-26 09:40:18 -08:00
ridiculousfish
f29139e853
Change clients of file_detection_context_t to use lambdas
...
Allows for eliminating file_detection_context_t
2017-01-26 09:40:17 -08:00
ridiculousfish
87152877b2
Switch to use lambda-style iothread for autosuggestions
...
Allows eliminating autosuggestion_context_t
2017-01-26 09:40:17 -08:00
ridiculousfish
8af00d2b78
Adopt lambda-style iothread_perform in syntax highlighting
...
Allows eliminating background_highlight_context_t
2017-01-26 09:40:17 -08:00
ridiculousfish
a3dbca90d5
g++-friendly 'Rework iothread_perform for void return types'
...
Allows iothread_perform to work with void return types on both
g++ and clang
This reverts commit 1040b255c7
and reintroduces ac9a0f0dbf
2017-01-26 09:40:17 -08:00
Guilhem Saurel
e07928062f
addressing comments
2017-01-26 00:01:34 +01:00
Clément Martinez
ec19159580
man
completions: complete fish commands (#3762 )
...
* man completions: complete fish commands
`apropos` does not output fish commands so they were not completed.
* Improve __fish_complete_man
2017-01-25 15:34:59 +01:00
Cristian Prieto
b7d60dc7bb
Improve bzr completion ( #3769 )
...
* Improve bzr completion. Closes #3661
* Add basic completion for bzr commands
* Include short and log options for common commands
* Removed not so common commands
* Remove trailing '.' as requested by #3769
* Remove '=' as suggested by #3769
* We don't need '=' in long options
* Use fish helper functions for autocomplete
To avoid issues pointed out in #3769 helper functions included in fish
are used (__fish_use_subcommand and __fish_seen_subcommand).
* Fixed typo
2017-01-25 15:34:00 +01:00
Guilhem Saurel
fab4399b8c
available completions for systemctl depends on its current version
2017-01-25 01:14:38 +01:00
Kurtis Rader
e468b71459
correct handling of SIGHUP by interactive fish
...
This is a partial fix for issue #3737 . It only addresses the SIGHUP
aspect of the problem. Fixing SIGTERM is TBD.
(cherry picked from commit 31adc221d9
)
2017-01-24 15:30:19 -08:00
Kurtis Rader
a447a9aeff
correct handling of SIGHUP by interactive fish
...
This is a partial fix for issue #3737 . It only addresses the SIGHUP
aspect of the problem. Fixing SIGTERM is TBD.
2017-01-24 15:24:13 -08:00
Kurtis Rader
319e65af05
improve sanity check code
2017-01-24 15:24:13 -08:00
Clément Martinez
3e10640c04
Add pv completions
2017-01-24 23:52:46 +01:00
Clément Martinez
405ec12940
Add new french translations
2017-01-24 22:12:07 +01:00
Judicaël Grasset
730086b0f0
apt: Add completion for the autoremove subcommand ( #3771 )
2017-01-24 19:55:42 +01:00
Fabian Homborg
1040b255c7
Revert "Rework iothread_perform for void return types"
...
This reverts commit ac9a0f0dbf
, which massively broke fish built with gcc.
Fixes #3770 .
2017-01-24 17:33:03 +01:00
Fabian Homborg
41f87e82a8
Make test errors redirectable
...
This can't use `fwprintf`, since that goes directly to actual stderr.
It needs to use the passed stream.
(cherry picked from commit ab3149257b
)
2017-01-24 16:57:49 +01:00