Skip to content

Usage as operator / operating on a motion #144

Description

@xeruf

What I would like to do - maybe the plugin already supports this, but I at least couldn't find anything in the help - is mapping the commands as operators, similar to how it is done here: https://www.reddit.com/r/vim/comments/ebaoku/function_to_google_any_text_object/

This would solve #119 nicely - instead of changing anything, one could map the function OpenGithubProject to the operator gx and then simply type gxi' to open the project currently under the cursor. Of course this specific example applies to the derivative open-browser-github plugin, but it could be used in any way - you could search whole paragraphs or full WORDS.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions