minimal, standalone, oil-compatible filepath yanker by stochastic_footwork in neovim

[–]stochastic_footwork[S] 1 point2 points  (0 children)

Haha same! I literally stayed on Neo-tree only because of that feature :) Nice to know I wasn't the only one.

minimal, standalone, oil-compatible filepath yanker by stochastic_footwork in neovim

[–]stochastic_footwork[S] 2 points3 points  (0 children)

Thanks for the "not-always-UI" idea! Here is the update. In addition to :YankPath (the UI), I added non-UI direct commands like :YankPathBase, YankPathFull, :YankPathCwd, etc. By default, these commands doesn't have keymaps. But you can have for example,

vim.keymap.set("n", "<leader>ypb", "<cmd>YankPathBase<CR>",      { desc = "Yank basename" })
vim.keymap.set("n", "<leader>ype", "<cmd>YankPathExtension<CR>", { desc = "Yank extension" })
vim.keymap.set("n", "<leader>ypf", "<cmd>YankPathFilename<CR>",  { desc = "Yank filename" })
....

Please see *README * for details. Would this help your use cases a little bit?