-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to make it better (not just different) #2
Comments
I second this motion |
This functionality should really be part of obsidian core... But until then, I guess some needs to make a PR... Somehwere here, I guess: obsidian-better-link-inserter/main.ts Lines 25 to 38 in 8a7d2d0
I don't know js so I'm not sure where to start. One thing I don't understand is: once the autocompletion popup shows up (that should be after line 30, if I'm not mistaken), does the plugin unload (which would mean any code that removes the |
Yet, maybe it is a good idea to always add an alias, even when it is identical with the actual file link, because if you do, the text wont change in case the file name is changed (see #5 ). |
The default "Add internal link" actually has 2 use cases that are different from your plugin's:
Your plugin is useful for another use case: when we know we want to link to an existing note and set an alias.
So I actually need to set 2 hotkeys to handle all these cases.
But there is a way to actually make your plugin better than the default command. And that's if there's a way to fallback to the original behavior in real time. For example, after hitting your command, the cursor is positioned just before the
|
character and the autocompletion pop-up shows up; if I could then just hit Esc, then the pop-up would close and your plugin would remove the|
character, then that would leave us with a more powerful combination.The text was updated successfully, but these errors were encountered: