Giter VIP home page Giter VIP logo

Comments (3)

abrookins avatar abrookins commented on June 3, 2024

What! Thank you for reporting. I'll take a look at this soon.

from wraptocolumn.

abrookins avatar abrookins commented on June 3, 2024

Man, this key combination sounds really familiar, but I can't place it. The plugin should install with a beastly default shortcut of Shift-Control-Meta-W, not a two-key combination like G,W, in part because I ran into a similar problem to what you reported.

What's your current keymap setting for Wrap to Column (Settings -> Keymap)? And do you use any map commands in your IdeaVim configuration file (if you have one)?

The general problem is that Intellij/PyCharm's Keymap feature is not aware of IdeaVim's modality, so there isn't a way to remap something like G,W into a normal-mode-only command.

You can do these sorts of command with a slightly better result by using a ~/.ideavimrc file. Then you can use IdeaVim's :action ex command like this:

map <Leader>gh :action Github.Open.In.Browser<CR>
map <Leader>gq :action com.andrewbrookins.idea.wrap.WrapAction<CR>

This works okay for the first example (open the current line in GitHub) but less well for Wrap to Column's action (the second example) because there's a bug in IdeaVim's implementation of :action, such that the command ignores a visual range; i.e., you can't highlight a few lines and send them to WrapAction.

Long story short, you'll probably need to use a more Emacsy shortcut for Wrap to Column, at least until someone (maybe me) fixes that limitation in IdeaVim.

from wraptocolumn.

abrookins avatar abrookins commented on June 3, 2024

Closing because this seems dependent on how users set up the key-mappings rather than the mappings that ship with the plugin.

from wraptocolumn.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.