You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Micke Nordin 5f821db800
Add some error handling
4 weeks ago
lua/telescope/_extensions Add some error handling 4 weeks ago
screenshots update screenshot of editor 1 month ago
README.md Add ability do delete records 4 weeks ago

README.md

knot.nvim

knot.nvim is a plugin for Neovim that provides a way to view and edit DNS records using knot via knotctl.

Installation

With lazy.nvim:

  {
    "https://code.smolnet.org/micke/knot.nvim.git",
    dependencies = {
      "nvim-telescope/telescope.nvim",
    },
    config = function()
      require("telescope").load_extension('knot')
    end,
  },

Dependencies

You need to have knotctl installed and configured on your system. If knotctl works for you in your terminal, it should work in this plugin as well.

Usage

This plugin provides a Telescope picker for viewing and editing DNS records. You can summon it with:

:Telescope knot update

You can also add new records with:

:Telescope knot add

or delete records with:

:Telescope knot delete

or add a mapping:

nnoremap <leader>ka :Telescope knot add<cr>
nnoremap <leader>kd :Telescope knot delete<cr>
nnoremap <leader>ku :Telescope knot update<cr>

You can edit the record and when saving it with :w you will be asked to confirm. You can quit the buffer with :q or q to discard changes.

Screenshots

The finder and previewer

Viewer

Editing a record

Editor