-
Notifications
You must be signed in to change notification settings - Fork 23
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
[Feature Request] Add Multiple cursor position #54
Comments
Can you give an exemple ? I'm not sure to see what you mean |
Right now there is only one jump point, like you put |
Can you give an exemple though ? Your explanation was already clear enough in the first place, but I don't see any practical case where you would need multiple cursors, that's why I was curious to see if you had a concrete exemple in mind |
I think I found an exemple, correct me if I'm wrong
And when you call it, your cursor would go to the first cursor, with the text "name" selected, so that when you type, it will replace it with what you want, and when you hit By looking at the documentation of VSCode I think I understand better how it is useful to have multiple cursors, but when I look at how the current Obsidian Snippet plugin works, it would be very challenging to implement it :/ |
Yeah that is a good example. It is very standard in most snippet programs I have seen, like Templater in obsidian or UltiSnips in vim. Altho tbh, I don't have a use case right now, I use Templater to fill forms and such and not got used to fully implement this plugin beside some limited cases which text expansion is much faster. So it is a nice thing to have but not urgent and I understand that is not easy to implement technically. Thank you. |
… I just discovered that what you described was already implemented in the plugin. I feel so dumb. See So if I rewrite the exemple I gave but with the syntax of the plugin, it goes like this :
It will replace And, just in case, the documentation says that you should not combine it with Sorry for telling you that it was not possible 😬 |
I am trying to test it with the example you used above but using tab key even in sandbox vault causes the whole line to indent instead of jumping to the next position. Do you know how to fix that? |
Ah, you have the same problem than others I've described a solution for that in the following comment : |
Thank for the help, hope the author soon accept the your pull request. |
It would be awesome if you add multiple Cursor position to jump to not just one end one.
Just found your Plugin, Thank you for this, really helpful
The text was updated successfully, but these errors were encountered: