Skip to content

bpanahij/url_templates.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

URL Template Opener

A Neovim plugin that opens a URL after replacing a specific part with the string selected in visual mode.

Installation

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,
}

Usage

  1. Select the text you want to replace {REPLACE_THIS_STRING} with in visual mode.
  2. Run the command :OpenUrlWithSelection

Configuration

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}"
})

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages