Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add command aliases #148

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

KSR-Yasuda
Copy link
Contributor

Cos mostly mistype...

@idbrii
Copy link
Contributor

idbrii commented Jan 25, 2023

Couldn't you add them to your vimrc:

command! -nargs=+                                                       BrowserOpen            call openbrowser#_cmd_open(<q-args>)
command! -nargs=+ -complete=customlist,openbrowser#_cmd_search_complete BrowserOpenSearch      call openbrowser#_cmd_search(<q-args>)
command! -nargs=+ -complete=customlist,openbrowser#_cmd_search_complete BrowserOpenSmartSearch call openbrowser#_cmd_smart_search(<q-args>)
delcommand OpenBrowser
delcommand OpenBrowserSearch
delcommand OpenBrowserSmartSearch

Seems very unusual for a plugin to have two sets of identical commands and it means tab completion for :B is polluted with a bunch of extra commands.

@Konfekt
Copy link
Contributor

Konfekt commented Apr 16, 2024

There are also vim-aliases

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants