Mahmoud Al-Qudsi
d11f9f7148
Fix git push REMOTE :BRANCH
completion
...
The `string match` was limiting it to `git push REMOTE :<TAB>` and would
fail for `git push REMOTE :x<TAB>`. Now working as expected.
2018-01-25 20:32:20 -06:00
Fabian Homborg
ea897fcc0f
git completions: Parse git status --porcelain ( #4673 )
...
* git completions: Parse git status --porcelain
This is much faster on large repositories, as it allows us to do a lot
more with a single git call.
It also makes it easy to add descriptions to distinguish modified
files from untracked ones.
TBD is if all commands now have the right kinds of files.
[ci skip]
2018-01-25 13:35:00 +01:00
Fabian Homborg
12c249abbe
Changelog pager navigation
...
[ci skip]
2018-01-25 13:27:23 +01:00
Fabian Homborg
cddd0d7538
[Pager] Adjust tests for changes in behavior
...
Since moving west no longer gets stuck in the top row (but instead
wraps around to the bottom row), this needs to have some indices
changed.
2018-01-25 13:26:53 +01:00
Fabian Homborg
dc95bfc1b1
[Pager] Make up without selected contents jump back into the pager
...
This makes it possible to select the last element of the completions
with just one keypress.
Fixes #3115 .
2018-01-25 13:26:53 +01:00
Fabian Homborg
13079911bc
[Pager] Wrap cardinal direction movement
...
Fixes #4669 .
2018-01-25 13:26:53 +01:00
Mahmoud Al-Qudsi
462b9c2209
Fix broken fish.pc build on non-GNU platforms
...
`-v` is a non-standard GNU-only extension to `awk`, its usage in the
generation of the fish.pc script breaks on non-GNU platforms (such as
FreeBSD and presumably macOS).
Using `sed` with only standard posix commands instead.
2018-01-23 22:07:04 -06:00
Birger J. Nordølum
2ba76a7115
diskutil.fish: added apfs completions, and tweaks to old ones
2018-01-23 19:25:12 +01:00
Yurizal Susanto
a6536db502
Update Eopkg support ( #4662 )
...
Update Eopkg support
Improve Eopkg completions
2018-01-22 14:25:34 -08:00
ridiculousfish
a39c57c1b6
Report errors for arguments to 'end'
...
For example, `begin ; end arg` will now report an error.
Fixes #986
2018-01-22 13:31:39 -08:00
ridiculousfish
9d48c68f24
Remove argument_or_redirection type
...
This was a symbol that represented either an argument or a redirection.
This was only used as part of argument_or_redirection_list.
It's simpler to just have these types be alternatives in the list type.
2018-01-22 13:18:34 -08:00
ridiculousfish
f81eef5ee1
Improve type checking of certain tnode_t interfaces
2018-01-22 13:13:28 -08:00
ridiculousfish
3b64a256b6
Add type checking to find_child()
...
Ensure that find_child() with impossible child nodes will now error
at compile time.
2018-01-22 11:09:29 -08:00
David Adam
020fe5ccdf
[cmake] fix installation of translations
2018-01-22 14:30:36 +08:00
David Adam
164108d0a9
[cmake] mark manual as an optional component for install
2018-01-21 20:37:29 +08:00
ridiculousfish
ae9b5871fb
Fix a tnode-related crash in syntax highlighting
...
Adds a new test too.
2018-01-21 02:17:21 -08:00
David Adam
9c7909c006
[cmake] install manual and changelog
2018-01-21 15:28:03 +08:00
David Adam
7b38d0b7cb
[cmake] match CMake project name to autotools
2018-01-21 15:28:03 +08:00
David Adam
1231d358de
[cmake] remove duplicate installation
2018-01-21 07:51:26 +08:00
ridiculousfish
04162b05ea
Remove the giant 'Fish grammar' comment
...
The fish grammar is now captured more precisely in parse_grammar.h
2018-01-20 14:09:40 -08:00
ridiculousfish
852cf183a6
Remove some unused parameters
2018-01-20 14:09:36 -08:00
ridiculousfish
c53ee263d8
Improve parse tree type safety
...
This merges a set of changes to improve the type safety of the fish parse
tree, in preparation for modifying fish grammar in 3.0. It expresses the
fish grammar via a new file parse_grammar.h. It then adds a new type
tnode_t parametrized on grammar elements, with typesafe access to its
children.
The idea here is to make it easy to change the fish grammar, and have the
compiler report code locations that must to be updated.
Merge branch 'threeparse'
2018-01-20 14:02:44 -08:00
ridiculousfish
0f8e8d1cea
Migrate tnode implementation to tnode.cpp
...
Also improve commenting.
2018-01-20 13:33:09 -08:00
ridiculousfish
094e853a20
Migrate tnode_t into new header tnode.h
2018-01-20 12:15:28 -08:00
ridiculousfish
1c2943bd8b
Make statement_is_in_pipeline a free typesafe function
2018-01-20 11:45:43 -08:00
ridiculousfish
194f7f34d9
Eliminate parse_node_tree::find_nodes
2018-01-20 11:45:43 -08:00
ridiculousfish
242512f0df
Migrate argument_list_is_root out of parse_node_tree_t
2018-01-20 11:45:43 -08:00
ridiculousfish
c1b60fa8e1
Remove header_node_for_block_statement
2018-01-20 11:45:43 -08:00
ridiculousfish
d7c28c9316
Eliminate job_should_be_backgrounded
2018-01-20 11:45:43 -08:00
ridiculousfish
3e7e92dfff
Remove specific_statements_for_job
2018-01-20 11:45:43 -08:00
ridiculousfish
05e8cf13f7
Eliminate parse_execution_context_t::get_child
2018-01-20 11:45:43 -08:00
ridiculousfish
5e4e0dab2c
Convert run_job_list to tnode_T
2018-01-20 11:45:43 -08:00
ridiculousfish
4c93cece58
Convert run_1_job to tnode_t
2018-01-20 11:45:43 -08:00
ridiculousfish
fa0f552fe9
Convert populate_block_process to tnode_t
2018-01-20 11:45:43 -08:00
ridiculousfish
2bf96493fc
Continued adoption of tnode in parse_execution.cpp
2018-01-20 11:45:43 -08:00
ridiculousfish
9c88d71e2f
Convert handle_command_not_found to tnode_t
2018-01-20 11:45:43 -08:00
ridiculousfish
298db6e11a
Convert populate_plain_process to tnode_t
2018-01-20 11:45:43 -08:00
ridiculousfish
8a14a4a5ff
Continued adoption of tnode_t in parse_execution
...
Migrate boolean statements
2018-01-20 11:45:43 -08:00
ridiculousfish
7a3d5ddeae
Convert run_begin_statement to tnode_t
2018-01-20 11:45:43 -08:00
ridiculousfish
6f99c9a904
Adopt tnode_t in run_function_statement
2018-01-20 11:45:43 -08:00
ridiculousfish
edc3d92eda
Adopt tnode in run_while_statement
2018-01-20 11:45:43 -08:00
ridiculousfish
554bef93ba
Switch run_switch_statement to tnode_t
2018-01-20 11:45:43 -08:00
ridiculousfish
3981accf05
Adopt tnode_t in run_if_statement
2018-01-20 11:45:43 -08:00
ridiculousfish
ce173e86b5
Adopt tnode_t in run_for_statement
2018-01-20 11:45:43 -08:00
ridiculousfish
b23c6ebcba
Migrate run_block_statement to tnode_t
2018-01-20 11:45:43 -08:00
ridiculousfish
cdc0167ba1
Switching symbol_job to use tnode_t in parse_execution.cpp
2018-01-20 11:45:43 -08:00
ridiculousfish
4768c42f5d
Early adoption of tnode_t in parse_execution.cpp
2018-01-20 11:45:40 -08:00
ridiculousfish
6f4db9f8ad
Add type safety to tnode_t::try_get_child
...
Detect when no options in an alternation type match the requested type,
and ensure such cases do not compile.
2018-01-20 11:31:40 -08:00
ridiculousfish
f0f56a6910
Teach decoration_for_plain_statement about tnode, rename it get_decoration
2018-01-20 11:31:40 -08:00
ridiculousfish
84dcb24682
Namespace alias grammar to 'g' in highlight.cpp
2018-01-20 11:31:40 -08:00