Skip to content

42dotmk/dirmark

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 

Repository files navigation

About

  • Dirmark is the simplest directory manager ever. It consists of a single file where you place the directories that you would like to easily switch between.
  • It is a telescope plugin that allows you to switch between directories with a single command.
  • Has the ability to add the current directory in the list of directories.
  • Or edit the list of directories in the file directly.
  • There are no dependencies, it is a single lua file that you can place in your `lua` directory.

Status

This are the very early stages of the plugin, so expect bugs and missing features. I dont yet have a proper readme as you can see bellow.

Install

  • You can install it with your favorite plugin manager, for example with lazy:
use {
    '42dotmk/dirmark',
    config = function()
        require('dirmark').setup()
    end
}

How to use

# Add the current directory to the list of directories
> lua require('dirmark').mark_cwd()<cr>

# Open the telescope prompt to switch between directories
> lua require('dirmark').open()<cr>

# Open the file where the directories are stored
> lua require('dirmark').open_marks_file()<cr>

Example Keybindings

Vim

nnoremap <leader>ma <cmd>lua require('dirmark').mark_cwd()<cr>
nnoremap <leader>mo <cmd>lua require('dirmark').open()<cr>
nnoremap <leader>me <cmd>lua require('dirmark').open_marks_file()<cr>

Lua

vim.api.nvim_set_keymap('n', '<leader>ma', '<cmd>lua require("dirmark").mark_cwd()<cr>', { noremap = true, silent = true })
vim.api.nvim_set_keymap('n', '<leader>mo', '<cmd>lua require("dirmark").open()<cr>', { noremap = true, silent = true })
vim.api.nvim_set_keymap('n', '<leader>me', '<cmd>lua require("dirmark").open_marks_file()<cr>', { noremap = true, silent = true })

Progress

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages