A Neovim plugin that opens a URL after replacing a specific part with the string selected in visual mode.
Using lazy.nvim:
{
"bpanahij/url_templates.nvim",
config = function()
require("url_templates").setup({
-- Optionally, you can customize the base URL here
-- base_url = "your custom URL with {REPLACE_THIS_STRING} placeholder"
base_url = "https://your-custom-url.com/{REPLACE_THIS_STRING}"
})
end,
}
- Select the text you want to replace
{REPLACE_THIS_STRING}
with in visual mode. - Run the command
:OpenUrlWithSelection
You can customize the base URL by passing it to the setup function:
require("url-opener").setup({
base_url = "https://your-custom-url.com/{REPLACE_THIS_STRING}"
})