Commit Graph

28 Commits

Author SHA1 Message Date
Eyal Posener aae7e1e39f Add logic to complete when last flag uses the equal sign
If the last flag is of the form -flag=value, complete the value according to -flag.
2017-11-04 11:32:33 +02:00
Eyal Posener 97eda09fcb gocomplete: add go tool subcommands
Fixes #39
2017-05-27 20:21:50 +03:00
Eyal Posener b3f5ec22d3 gocomplete: go run should also predict non-main functions 2017-05-18 23:40:02 +03:00
Eyal Posener 659bd9e3d5 Merge pull request #26 from posener/runnable
gocomplete: run only runnable go files
2017-05-15 23:05:08 +03:00
Eyal Posener ff8cd4ed39 gocomplete: run only runnable go files
when typing 'go run', the completion will complete only go files
which are in main package and have a main function.
2017-05-15 22:50:05 +03:00
Eyal Posener 096b79324e Add global flags for command
Fixes #24
2017-05-15 19:32:59 +03:00
Eyal Posener e00c0546bc gocomplete: add build flags to get command 2017-05-15 16:37:36 +03:00
Eyal Posener 3776c7286e cmd/install: add support for zsh
Fixes: #9
2017-05-13 11:06:15 +03:00
Eyal Posener bc5d682221 fix nested files 2017-05-13 00:40:26 +03:00
Eyal Posener f580110640 gocomplete: complete by packages 2017-05-13 00:17:59 +03:00
Eyal Posener 967bae76f3 Add Predictor interface 2017-05-11 20:33:29 +03:00
Eyal Posener 72dfe017e9 Improve files and directories completion 2017-05-11 02:16:39 +03:00
Eyal Posener 9de57bdcf5 Enable completion and executable be the same command
Fixes #6
2017-05-10 19:21:35 +03:00
Eyal Posener c06142941d [gocomplete] fix test name completion 2017-05-08 06:44:00 +03:00
Eyal Posener 6fb4875efa Move match to a separate package 2017-05-07 19:57:41 +03:00
Eyal Posener fd5c13f7ed Remove Name from Command struct 2017-05-07 07:59:42 +03:00
Eyal Posener 703dd6ebc3 improve docs 2017-05-06 22:15:15 +03:00
Eyal Posener dc4c327ae8 Use local completion files and directories according to typed command 2017-05-06 19:51:33 +03:00
Eyal Posener 60345dc6db fmt 2017-05-06 19:11:16 +03:00
Eyal Posener 07b98cb912 Use pointers to predicates 2017-05-06 19:08:47 +03:00
Eyal Posener 4f47fe9246 Add easy way to install the bash completion 2017-05-06 18:55:54 +03:00
Eyal Posener d33bac720b Remove Complete struct 2017-05-06 09:27:51 +03:00
Eyal Posener 5dbf53eec0 nicer signature for PredictSet 2017-05-06 00:53:03 +03:00
Eyal Posener 1af7c0b3b7 Roughly add all go commands 2017-05-06 00:25:27 +03:00
Eyal Posener c8263230e1 Add additional args
add predition of directories
add ability for prediction union
2017-05-05 23:07:18 +03:00
Eyal Posener 04d16f6064 Renamings 2017-05-05 22:15:23 +03:00
Eyal Posener 6311b602ab Add plural forms for less verbose declarations 2017-05-05 18:06:31 +03:00
Eyal Posener bc26c054b7 Add go complete example 2017-05-05 18:01:27 +03:00