Eyal Posener
7ee9623f2b
Filter matches as a final stage
...
This simplifies the prediction logic writing, the predictor
doesn't need to filter our according to line matching, instead
it returns everything and the filtering is done at the end.
This does not break current behavior.
2017-11-04 10:51:40 +02:00
Eyal Posener
88e59760ad
Merge pull request #52 from thomshutt/master
...
Fixed grammar
2017-09-08 15:52:45 +03:00
Thom Shutt
a27e787f90
Fixed grammar
2017-09-08 13:40:26 +01:00
Eyal Posener
9f41f7636a
Merge pull request #50 from sethvargo/sethvargo/nospace
...
Use nospace option for zsh
2017-08-29 20:11:12 +03:00
Seth Vargo
0c517573da
Use nospace option for zsh
2017-08-29 12:55:27 -04:00
Eyal Posener
2100d1b06c
Merge pull request #47 from dadgar/f-hide-flags
...
Allow restricting completion of flags
2017-08-25 09:44:15 +03:00
Eyal Posener
91e5b1f44a
lint: fix typo
2017-08-25 09:41:42 +03:00
Alex Dadgar
2b9ace50d6
Fix tests from rebase
2017-08-24 17:37:26 -07:00
Alex Dadgar
97340ccc21
Default to hiding flags that start with hyphen unless last arg has a hyphen
2017-08-24 17:35:36 -07:00
Alex Dadgar
59e6151c5b
Allow restricting completion of flags
...
This PR allows a command to specify that flags should only be completed
when a prefix is present. The motivation behind this is to have the
initial complation to prefer displaying argument completions and only
display flag completions when the user enters "hyphen <tab>".
2017-08-24 17:35:36 -07:00
Eyal Posener
5075f6d6e6
Merge pull request #48 from dadgar/b-shared-prefix
...
Fix a subcommand matching
2017-08-24 23:05:41 +03:00
Alex Dadgar
1c43d25e35
Avoid unnecessary if statement
2017-08-24 11:08:51 -07:00
Alex Dadgar
d3c10410d6
Fix a subcommand matching
...
This PR fixes an issue where a subcommand matches the current set of
commands being examined. Fixes issue
https://github.com/posener/complete/issues/46
2017-08-23 13:58:31 -07:00
Eyal Posener
f4461a52b6
Merge pull request #45 from Deleplace/default-gopath
...
Handle default gopath $HOME/go when env var $GOPATH is not set.
2017-07-30 22:30:24 +03:00
Deleplace
4bd1bbca4a
Handle default gopath $HOME/go when env var $GOPATH is not set.
2017-07-30 19:41:18 +02:00
Eyal Posener
c111db7af1
Merge pull request #44 from posener/package
...
gocomplete: Add support for system GOPATH packages
2017-07-28 15:20:25 +03:00
Eyal Posener
a67bb12457
gocomplete: Add support for system GOPATH packages
...
fixes #41
2017-07-28 15:01:07 +03:00
Eyal Posener
e8d6fef54b
Merge pull request #40 from posener/tool
...
gocomplete: add go tool subcommands
2017-05-27 20:24:47 +03:00
Eyal Posener
97eda09fcb
gocomplete: add go tool subcommands
...
Fixes #39
2017-05-27 20:21:50 +03:00
Eyal Posener
8a418a6ab0
Merge pull request #38 from josharian/fix-installer
...
Fix installer
2017-05-23 19:33:44 +03:00
Josh Bleecher Snyder
b74be9ff54
add .bash_profile as a bash rc file
...
This is common on macs.
2017-05-23 08:04:21 -07:00
Josh Bleecher Snyder
e3c14b831e
check whether rc file exists during installation
2017-05-23 08:03:54 -07:00
Josh Bleecher Snyder
de4cdce279
correctly report installation failures
...
Prior to this, installations failed silently.
2017-05-23 07:43:32 -07:00
Eyal Posener
3e6cff0740
Merge pull request #37 from posener/fixes
...
Fixes
2017-05-23 07:45:28 +03:00
Eyal Posener
17b9aed67c
readme: fix example
2017-05-23 07:39:54 +03:00
Eyal Posener
3636c19b38
Fix example/self
...
Fixes #34
2017-05-23 07:33:38 +03:00
Eyal Posener
1a4c871bd8
Fix installation
...
Fixes #36
2017-05-23 07:33:14 +03:00
Eyal Posener
bae3fd94da
Merge pull request #35 from lucapette/patch-1
...
Fix typo
2017-05-22 17:32:01 +03:00
lucapette
8bb4de3518
Fix typo
2017-05-22 16:15:58 +02:00
Eyal Posener
55ecf96557
Merge pull request #33 from posener/license
...
change license to MIT
2017-05-20 23:26:05 +03:00
Eyal Posener
20a143602e
change license to MIT
2017-05-20 23:22:26 +03:00
Eyal Posener
eade2bb233
Merge pull request #32 from posener/flags
...
Flags
2017-05-20 22:53:01 +03:00
Eyal Posener
14dcbd6b21
cmd: remove adding of flags from run
2017-05-20 22:29:12 +03:00
Eyal Posener
5ba73666ab
cmd: fix complete flags name
2017-05-20 22:15:37 +03:00
Eyal Posener
bc002bd8a7
Merge pull request #31 from posener/improves
...
predict files: remove loop
2017-05-20 09:19:13 +03:00
Eyal Posener
6fc235c5dc
predict files: remove loop
2017-05-20 08:13:13 +03:00
Eyal Posener
7636231d03
Merge pull request #30 from posener/improves
...
gocomplete: improve package completion
2017-05-19 12:05:47 +03:00
Eyal Posener
238b78ffd9
gocomplete: improve package completion
2017-05-19 11:59:51 +03:00
Eyal Posener
abde60c79d
Merge pull request #29 from posener/metalinter
...
Metalinter
2017-05-19 00:38:56 +03:00
Eyal Posener
1dc99e31db
readme: go get -u
2017-05-19 00:33:53 +03:00
Eyal Posener
606af1720e
travis: add gometalinter tests
2017-05-19 00:33:49 +03:00
Eyal Posener
a3e3c5274c
Merge pull request #28 from posener/gocomplete-improve
...
Gocomplete improve
2017-05-19 00:20:03 +03:00
Eyal Posener
3555a6948a
gocomplete: better pakcages listing
...
use go/build package
only read one level of packages, and not all packages
2017-05-19 00:15:33 +03:00
Eyal Posener
b3f5ec22d3
gocomplete: go run should also predict non-main functions
2017-05-18 23:40:02 +03:00
Eyal Posener
dce08717c1
Merge pull request #27 from posener/prefixes
...
Fix './' prefix for file completion
2017-05-18 23:34:43 +03:00
Eyal Posener
61d9904ba1
Fix './' prefix for file completion
2017-05-18 23:29:55 +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
3dd16239ee
Add example test to increase coverate
2017-05-15 23:01:05 +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
3db55cf7d9
Merge pull request #25 from posener/global
...
Add global flags for command
2017-05-15 20:06:16 +03:00