question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Feature Request] Configure Sneak keymap

See original GitHub issue

The sneak plugin offers similar functionality to find command (f). Some vim users believe sneak’s usefulness eclipses the find command, and remap f to sneak [1].

For vim users that map this, it means a consistent key can be used [2], and returns the original map of the s key (the substitute command).

This is a request to add an option to the plugin’s configuration to define a custom key to activate the sneak plugin. Users that rebind the key will have the original map of s returned to them.

I have looked though the source and feel I could implement this myself, if I wasn’t so busy. I will make a pull request in the future; if someone doesn’t beat me to it.


[1] Vim-Sneak Readme: https://github.com/justinmk/vim-sneak#how-can-i-replace-f-with-sneak [2] By default, Sneak uses s for moving, and z for text operations

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:3
  • Comments:7 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
liamdiprosecommented, Dec 3, 2019

Sweet, thanks for implementing the feature @J-Fields 🎉

1reaction
mmqmzkcommented, Jul 8, 2019

Put this in your config:

"vim.normalModeKeyBindingsNonRecursive": [
    {
      "before": [
        "f"
      ],
      "after": [
        "s"
      ]
    },
    {
      "before": [
        "F"
      ],
      "after": [
        "S"
      ]
    },
    {
      "before": [
        "s"
      ],
      "after": [
        "c",
        "l"
      ]
    },
  ],

This works for me, replace f and F key as you like.

Read more comments on GitHub >

github_iconTop Results From Across the Web

X19 Sneak Peek: Changes for Keyboard Layout and Spell ...
Based on feature requests from users, we changed the way how Text Control works in two specific areas: Keyboard layout changes and spell ......
Read more >
Toggle between feature request modes - ArcGIS Developers
Use different feature request modes to populate the map from a service feature ... Create a FeatureLayer with the feature table and add...
Read more >
Features request! What do you want added? :: Thief Simulator ...
I would really like to see a multiplayer, people can sneak into other peoples places kinda deal, sort of like MGSV where you...
Read more >
Finale 2005 Sneak Preview :: MakeMusic Forum
Assess against one of Finale's existing exercises or create your own. ... When customer service hears about a feature request on a regular...
Read more >
JetBrains/ideavim - Gitter
@AlexPl292 I've also seen some interesting things in your config ... hi everyone, I opened an issue to request the addition of a...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found