Commit Graph

36 Commits

Author SHA1 Message Date
Jakob Schöttl
1fb6f17bb2 Update shell completion for current master (v1.19) 2020-09-06 17:11:59 -07:00
Martin Michlmayr
cad9c49e6d doc: fix formatting issue 2020-06-16 19:13:18 -07:00
Simon Michael
4db14ef70f ;api: another round of hledger-api purging; fix the build 2019-09-11 14:49:22 -07:00
Jakob Schöttl
1bc246681f Update shell completion script 2019-06-30 10:38:06 +02:00
Jakob Schöttl
1df99d922a Update demonstration video 2019-02-16 06:52:21 -08:00
Jakob Schöttl
7bf71e709c Bugfix: long options must start with a letter 2019-02-16 06:52:21 -08:00
Jakob Schöttl
ea21d45d3f Make completions work for hledger-* 2019-02-16 06:52:21 -08:00
Jakob Schöttl
966d949807 Update completion 2019-02-16 06:52:21 -08:00
Jakob Schöttl
1a88ee6265 Add some external commands to completion 2019-02-16 06:52:21 -08:00
Jakob Schöttl
f989d6124d Update bash completion script
This removes duplicate options from the completion, does not list -h as
command anymore, and adds the latest options (i.e. register --invert).
2019-02-16 06:52:21 -08:00
Jakob Schöttl
550f47b3fa Some fixes in hledger help output parsing 2019-02-16 06:52:21 -08:00
Jakob Schöttl
00253678a9 Add feature documentation 2019-01-23 16:46:17 -08:00
Jakob Schöttl
903fe734e3 Add doc 2019-01-23 16:46:17 -08:00
Jakob Schöttl
3f407a326d Add completions for query filters 2019-01-23 16:46:17 -08:00
Jakob Schöttl
5df9de3abb Remove old file 2019-01-23 16:46:17 -08:00
Jakob Schöttl
f19eb04e8d Update completion script artifact 2019-01-23 16:46:17 -08:00
Jakob Schöttl
1ee13bff66 Fix comments 2019-01-23 16:46:17 -08:00
Jakob Schöttl
13c4235730 Leave out subcommands with only one letter 2019-01-23 16:46:17 -08:00
Jakob Schöttl
43b3fb3cae Bugfix: use proper built-in file completion with support for subfolders 2019-01-23 16:46:17 -08:00
Jakob Schöttl
65ec51c3d9 Apply naming convention for function and variable name
It seems to be convention to start the completion function name with an
underscore. I also prepend an underscore to the global variable.

(I still don't understand why  env  does not show this global variable
defined in the hledger-completion.bash script.)
2019-01-23 16:46:17 -08:00
Jakob Schöttl
ae060d9f13 Refactor Makefile
hledger-completion.bash does not depend on command-options because this
phony target is so slow. Use  make  once and subsequently only
make hledger-completion.bash
2019-01-23 16:46:17 -08:00
Jakob Schöttl
a2dc1289a5 Add doc on adding support for other shells 2019-01-23 16:46:17 -08:00
Jakob Schöttl
84eaf20f9b Add bash completion script (an artifact) 2019-01-23 16:46:17 -08:00
Jakob Schöttl
e491f34ddf Bugfix and remove unused code
Bug was: Account names with spaces were broken into single completion
suggestions, not line by line.
2019-01-23 16:46:17 -08:00
Jakob Schöttl
90257a1729 Fix comments 2019-01-23 16:46:17 -08:00
Jakob Schöttl
db00f5b452 Speed up Makefile script a little bit 2019-01-23 16:46:17 -08:00
Jakob Schöttl
5638c89f53 Update README and .gitignore 2019-01-23 16:46:17 -08:00
Jakob Schöttl
e747b9fa8c Remove useless case 2019-01-23 16:46:17 -08:00
Jakob Schöttl
637ab8855d Bugfix for --file=... case 2019-01-23 16:46:17 -08:00
Jakob Schöttl
1cd979ae18 Bugfix: Must use array here because of word splitting 2019-01-23 16:46:17 -08:00
Jakob Schöttl
e3826be379 Cosmetic changes 2019-01-23 16:46:17 -08:00
Jakob Schöttl
872484729e Add README 2019-01-23 16:46:17 -08:00
Jakob Schöttl
78d08455c0 Refactor helper script 2019-01-23 16:46:17 -08:00
Jakob Schöttl
e5134db9a4 Remove unused code 2019-01-23 16:46:17 -08:00
Jakob Schöttl
bd702642a6 Add .gitignore 2019-01-23 16:46:17 -08:00
Jakob Schöttl
dc73b55b7b Add files for bash completion 2019-01-23 16:46:17 -08:00