• Packages
  • Themes
  • Documentation
  • Blog
  • Discuss
Sign in

vim-mode-plus-replace-with-execution

Replace selected text with execution result
t9md
0.4.0 1,916
5
  • Repo
  • Bugs
  • Versions
  • License
Flag as spam or malicious

Build Status

vim-mode-plus-replace-with-execution

This is operator plugin for vim-mode-plus.

Replace selected text with the result of stdout of execution.
So, you have to be very careful every time you use this command.
Don't set keymap if you are working in critical environment to avoid unwanted invocation.

Pipe(|) is not supported.

Configuration

registerToSelectList: (default false)

Register as member of transformers for TransformStringBySelectList.
You have to restart Atom to make change take effect.

Invocation

Three kinds of invocation.

  • Keymap
  • Command palette
  • From select-list prompted by vim-mode-plus:transform-string-by-select-list command

Keymap example

No keymap by default. Set following keymap to in your keymap.cson.

'atom-text-editor.vim-mode-plus.normal-mode, atom-text-editor.vim-mode-plus.visual-mode':
  'f5': 'vim-mode-plus-user:replace-with-execution'
  'shift-f5': 'vim-mode-plus-user:replace-with-execution-keep-original-text

or For specific grammar

  • Github markdown
'atom-text-editor.vim-mode-plus.normal-mode[data-grammar="source gfm"],
  atom-text-editor.vim-mode-plus.visual-mode[data-grammar="source gfm"]':
    'f5': 'vim-mode-plus-user:replace-with-execution'
    'shift-f5': 'vim-mode-plus-user:replace-with-execution-keep-original-text'

I think this package is bad news.

Good catch. Let us know what about this package looks wrong to you, and we'll investigate right away.

  • Terms of Use
  • Privacy
  • Code of Conduct
  • Releases
  • FAQ
  • Contact
with by