Vintage icon indicating copy to clipboard operation
Vintage copied to clipboard

same key with different mappings in insert/command/visual modes

Open titouandk opened this issue 3 years ago • 0 comments

Hello,

I would like a key combination:

  • To do something in INSERT MODE
  • To do something else in COMMAND MODE
  • And something else in VISUAL MODE.

Here is a simplified example:

{ "keys": ["ctrl+super+alt+j"], "command": "insert_snippet", "args": {"contents": "1"}, "context":
	[ { "key": "setting.command_mode" } ]
},
{ "keys": ["ctrl+super+alt+j"], "command": "insert_snippet", "args": {"contents": "2"}, "context":
	[ { "key": "setting.insert_mode" } ]
},
{ "keys": ["ctrl+super+alt+j"], "command": "insert_snippet", "args": {"contents": "3"}, "context":
	[ { "key": "setting.visual_mode" } ]
}

It seems like the setting.insert_mode and setting.visual_mode variables do not exist.

Does someone see a way to do this?

Thank you 😉

titouandk avatar Jun 30 '22 17:06 titouandk