Commit Graph

20 Commits

Author SHA1 Message Date
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