Dyldog / luhman-obsidian-plugin

GNU General Public License v3.0
60 stars 18 forks source link

[FEATURE] Notice Error on invalid target Filename #57

Open electblake opened 11 months ago

electblake commented 11 months ago

Requested Feature

Relates To

Is your feature request related to a problem? Please describe.

When creating (or more often when migrating) a note's content to a child or sibling, I'll select a header or similar and hit my hotkey to create child - and it doesn't do anything.

I get confused and try again, and then remember that the : in my selected text for child is invalid for filenames - but I have to remember this, this error is not presented to me

Solution

Describe the solution you'd like

When creating child or sibling via Command Hotkey (or maybe just in command?) if the filename being created is invalid, show a notice saying so.

Considerations

Describe alternatives you've considered

I did consider a solution where the selected text could be changed (sluggized for instance) but that seems way too complicated when a simple error notice works.

Additional context

Add any other context or screenshots about the feature request here.

This doesn't happen often, but when it does, it annoys me a lot ;)