Граф коммитов

37 Коммитов

Автор SHA1 Сообщение Дата
Torkel Rogstad 54d7702590 Add more Fish completions to pull-request 2020-03-16 15:38:16 +01:00
Derek Sifford 410e84156f
use `command grep` vs `grep`
This change accounts for uses who might have an alias set to grep with is not compatible with `grep -E` (e.g. `alias grep=rg`)
2019-12-14 17:39:11 -05:00
Jon Bramley 81941c1b37 Added pr show completion and made more robust 2019-11-04 16:50:21 +00:00
Siôn le Roux 5f5dd4c9e2 Make --no-remote and --remote-name completions mutually exclusive
Because it wouldn't make sense to set a name for a remote when you ask
it not to add a remote (or vice versa) these two flags are mutually
exclusive.

For lack of an idea for a more elegant solution, I've made it so that
whenever either of them matches, the other will also be dropped from the
available flags list.  This works perfectly for now but will probably
need to be revisited if any other such parameters are added in future.
2019-10-03 21:42:00 +02:00
Siôn le Roux 1d209b896f Don't suggest completions for git fork free-text arguments
The --remote-name and --org parameters to git fork expect arguments
which can be considered free text because the user has to suggest a
name, so we can't provide suggestions there.

If one of those two was the previous word then we clear completion
suggestions until a free-text word has been entered, allowing the user
to add their own input there.
2019-10-03 21:29:23 +02:00
Siôn le Roux 1a4bd7b974 Add --org flag to bash completion for git fork
Because this is an array of flags now, adding new flags is as simple as
adding more elements to the array and to the case statement.
2019-10-03 21:18:18 +02:00
Siôn le Roux 1cd31ae85c Add --remote-name flag to bash completion for git fork
Instead of adding more if statements I swapped the remote=yes variable
for a list of available flags which we drop elements from on each
completion.  This is based on the logic in git create above.

Fixes #2108.
2019-10-03 21:17:37 +02:00
Lawrence 7efbf964b1 Added `hub pr` fish completions and wrapped `git` completions
* Redefined `__fish_hub_using_command` to support multiple commands (such as `hub pr list`)
* Added `hub pr list` and `hub pr checkout` along with their options
2019-09-07 19:41:06 -04:00
Mislav Marohnić e820f9da15 [docs] Don't assume that Homebrew is always on macOS
Linuxbrew is available on linux and WSL

[ci skip]
2019-03-12 15:09:27 +01:00
Mislav Marohnić 20c00d8f42 [docs] Clarify shell completion setup with Homebrew
Fixes #2054 [ci skip]
2019-03-12 14:57:39 +01:00
Cody Allen 819aa968f7
Add pull-request --no-edit flag to zsh completion 2019-02-21 08:26:39 -08:00
Mislav Marohnić 7467e49c90 Clarify documentation about what constitutes a title in `--message`
It's not only the first line of text; it's the entire first "block" (or
paragraph) of text with newlines turned into spaces. This is for
compatibility with git-commit(1).
2018-11-28 02:38:12 +01:00
Mislav Marohnić ecaafce407 Have `ci-status` also query Checks API
The results of Status and Checks API are merged together.

Fixes #1787
2018-07-07 14:37:41 +02:00
Mislav Marohnić 698721b20e Ensure all custom commands are listed in docs and shell completions 2018-07-06 22:25:22 +02:00
Anthony Fok 689ea8838b
Remove executable bit from bash/zsh completion scripts 2018-06-15 20:15:18 -06:00
venyii c8d2cc0247
Add milestone to pr by name instead of number 2018-03-16 00:28:06 +01:00
Mislav Marohnić ac70b8edd5 Add `sync` command to shell completion scripts
Fixes #1549
2018-02-21 13:40:59 +01:00
Zaven Muradyan e723a635d0 Ensure that _git completion func is replaced only once.
This allows the completion script to be sourced more than once while
still behaving correctly. Previously, the script would attempt to
replace `__git_list_all_commands` blindly, which would yield
multiply-replaced calls like
`__git_list_all_commands_without_hub_without_hub`.
2017-10-16 18:30:26 -07:00
Mislav Marohnić 5b76f1ad76 Touch up docs for shell completion scripts 2017-02-06 15:24:38 +01:00
Mislav Marohnić 735a00e446 Add `ci-status` to fish completion 2017-02-06 14:28:50 +01:00
Mislav Marohnić 4509cee369 Fix some flags in fish completion 2017-02-06 14:26:24 +01:00
Mislav Marohnić 7b92cd9372 Fix fish completion instructions 2017-02-05 16:41:41 +01:00
Michihito Shigemura 95b84c5fcb Update README for fish completion 2017-01-23 22:43:42 +09:00
Michihito Shigemura ed0a2a729f Add fish completion 2017-01-23 22:16:23 +09:00
Christoph Junghans 57f1ff3981 bashcomp: try to load git comp first (fix #592) 2016-03-04 19:18:25 -07:00
Heitor Tashiro Sergent 296f43a86c Add bash + homebrew section and bash_profile mention
Also removed instructions and references to set up git auto-completion.
2015-10-17 20:59:48 -05:00
Heitor Tashiro Sergent d0df01645e Update zsh instructions and add bash instructions 2015-10-13 15:53:54 -05:00
Heitor Tashiro Sergent bbd2b44e96 Add installation instructions for zsh 2015-10-13 15:53:54 -05:00
David Calavera 401c004564 Add missing completions and docs for pull-request flags.
Signed-off-by: David Calavera <david.calavera@gmail.com>
2015-08-06 16:21:43 -07:00
Mislav Marohnić d073862634 Make bash completion script compatible with bash v3
Previus version was written for bash v4 and was causing syntax error
when used with older versions of bash that still ship with most systems.

References 3565094d30
Closes #359
2013-11-12 16:44:26 +01:00
Mislav Marohnić f659fa1e4a avoid alias for git in bash completion 2013-07-03 01:35:25 +02:00
Mislav Marohnić a0c6091f6e update pull-request flags bash completion 2013-07-03 01:35:25 +02:00
Ladios Jonquil 3565094d30 add bash completions for hub command arguments 2013-07-03 01:34:44 +02:00
Ladios Jonquil b6d606b35b enable bash completion even when not using git alias 2013-07-03 01:34:04 +02:00
Mislav Marohnić 5bd4a5f89b update zsh completions for pull-request and ci-status 2013-07-02 22:46:48 +02:00
Dave Goodell cb9bb13a80 fix zsh completion
This `_hub` completion script should correctly wrap modern versions of
the `_git` scripts distributed by both zsh (native) and git
(bash-based).  The bash-based version could use a bit more love to
complete arguments to the actual subcommands.  Right now it can only
complete the names of the subcommands themselves.

The `compdef` that was previously emitted by `hub alias -s` prevents the
new `_git` script from working, so it has been eliminated.

Fixes #231
2013-07-01 13:46:59 +02:00
Mislav Marohnić 3c0d9fee81 organize and document completion scripts 2012-03-20 20:29:40 +01:00