Skip to content

Escape or URL encode any text in your buffer

License

Notifications You must be signed in to change notification settings

m-gail/escape.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

escape.nvim

escape.nvim is a plugin, which will replace any text in your buffer with an escaped string.

It can be used with visual mode and motions such as iw.

Usage

Setup a binding to any of the functions available

vim.keymap.set({"n", "v"}, "<leader>e", require("escape").escape, { noremap = true, silent = true })

You can then use it in visual mode, or with a motion (e.g. <leader>eiw)

Available functions

For more detail see :help escape-nvim-functions

  • escape
Some "Random String" -> Some \"Random String\"
  • encode_uri_component
query string with a / -> query%20string%20with%20a%20%2F

or apply a custom converter with apply_converter

About

Escape or URL encode any text in your buffer

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages