3 Commits

Author SHA1 Message Date
Andy
afda8f1636 Merge 8a8d0df331 into b068eaf1e6 2025-02-15 22:22:50 -06:00
Tim Pope
b068eaf1e6 Drop */# maps in visual mode
Resolves: https://github.com/tpope/vim-fugitive/issues/2374
2025-02-02 23:33:54 -05:00
Andy
8a8d0df331 README: Hint that GBrowse also supports copying
This change might give users a hint this command isn't only for
browsing. Actual command instructions can be found in the manual.
2022-08-11 12:25:00 +02:00
2 changed files with 6 additions and 6 deletions

View File

@@ -55,10 +55,10 @@ Additional commands are provided for higher level operations:
the buffer. `:GRemove` does the same but leaves the (now empty) buffer
open.
* `:GBrowse` to open the current file on the web front-end of your favorite
hosting provider, with optional line range (try it in visual mode). Plugins
are available for popular providers such as [GitHub][rhubarb.vim],
[GitLab][fugitive-gitlab.vim], [Bitbucket][fubitive.vim],
[Gitee][fugitive-gitee.vim], [Pagure][pagure],
hosting provider or copy a link, with optional line range (try it in visual
mode). Plugins are available for popular providers such as
[GitHub][rhubarb.vim], [GitLab][fugitive-gitlab.vim],
[Bitbucket][fubitive.vim], [Gitee][fugitive-gitee.vim], [Pagure][pagure],
[Phabricator][vim-phabricator], [Azure DevOps][fugitive-azure-devops.vim],
and [sourcehut][srht.vim].

View File

@@ -8030,8 +8030,8 @@ function! fugitive#MapJumps(...) abort
call s:MapMotion(']]', 'exe <SID>NextSection(v:count1)')
call s:MapMotion('[]', 'exe <SID>PreviousSectionEnd(v:count1)')
call s:MapMotion('][', 'exe <SID>NextSectionEnd(v:count1)')
call s:Map('nxo', '*', '<SID>PatchSearchExpr(0)', '<expr>')
call s:Map('nxo', '#', '<SID>PatchSearchExpr(1)', '<expr>')
call s:Map('no', '*', '<SID>PatchSearchExpr(0)', '<expr>')
call s:Map('no', '#', '<SID>PatchSearchExpr(1)', '<expr>')
endif
call s:Map('n', 'S', ':<C-U>echoerr "Use gO"<CR>', '<silent><unique>')
call s:Map('n', 'dq', ":<C-U>call fugitive#DiffClose()<CR>", '<silent>')