obsidian.nvim icon indicating copy to clipboard operation
obsidian.nvim copied to clipboard

Note move command

Open mdSlash opened this issue 1 year ago • 5 comments

🚀 The feature, motivation and pitch

Can you add a command to move the current note to a folder in the current workspace or another workspace?

Alternatives

No response

Additional context

No response

mdSlash avatar Jan 20 '24 23:01 mdSlash

Hey @mdSlash, :ObsidianRename allows you to move a note to new folder in the same workspace. But currently we don't have a command to move notes between workspaces.

epwalsh avatar Jan 27 '24 00:01 epwalsh

Sorry, my description wasn't clear. Let's try again.

Adding a command to let users move a note to another directory in the current workspace, showing the subdirectory paths using Telescope plugin - just like Obsidian's Move current file to another folder command.

mdSlash avatar Jan 27 '24 05:01 mdSlash

@mdSlash ah I see. That would be nice to have.

epwalsh avatar Jan 29 '24 18:01 epwalsh

Hello! I have this functionality in my "alternative" toy-plugin. Maybe the implementation might come in handy.

IlyasYOY avatar Jan 30 '24 11:01 IlyasYOY

I can only agree; when using :ObsidianRename I don't get any help on understanding what folders there are in my vault. This gets more complex as you might want to move into sub-folders.

image

One idea could be to leverage cmp-path completion: https://github.com/hrsh7th/cmp-path Then you would get visual feedback as you type in the input field. Here I have it enabled for my noice command line:

image

fredrikaverpil avatar Sep 10 '24 07:09 fredrikaverpil