-
-
Notifications
You must be signed in to change notification settings - Fork 25
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] New Command: Select Word (Not Select the Next Occurrence) #39
Comments
Thanks for the detailed explanation 🙂 this issue seems like it could be solved with a slight change to your workflow though? If I'm understanding correctly, the difference in behaviour is because in the first case, you're using the QuickAdd macro with a cursor selection, whereas in the second case, you're using it after selecting the text yourself via the keyboard. What if you change the macro to only perform
Or if you really want to keep one where it expands to the current word, maybe create another version of the macro to do that. (I'd also prefer to avoid keeping and maintaining bespoke commands where possible) |
💙 and thanks for using your time to reply and to suggest a different approach :)
100% Correct. The command Select Word would select a word when the caret cursor is placed between two characters AND keep the selection if something was already selected. This way I had four situations covered:
This way I could have one hotkey for 4 workflows different workflows.
I really appreciate the suggestion. Some info just to see the problem is a more dangerous than looks :) I have 8 commands with this behavior. I don't have more hotkeys :(
I already have hotkeys that only applies to situations where I need to apply the decoration to the ℹ️ As you know I use your other command
Before creating this FR I tried for weeks everything possible to avoid creating this FR (Templater, Shell Commands, changing the Macro) but we don't have another plugin that selects the word, just yours used to be. That's why I put a lot ❤️ to create an detailed FR that would show to you how this new command is important to workflows that rely on selection as the first step of a command with multiples step. You were my last chance :) I created the FR and 🙏 for Obsidian gods for an answer :)
100% understood 👍 |
I see, I appreciate the effort you went to in trying to find workarounds! I'll revisit this if there ends up being more demand for it, or at least after I've addressed some of the other pending feature requests first. For now – the select word command was updated in c88b861. Could you potentially look into changing your copy of the plugin by restoring the deleted lines in |
I really appreciate @timhor for some hope in the future. Thanks for caring @timhor ! It means a lot
I am not a developer but I am a hard worker. If you give some guidance and help on how to do this I will try my best. My questions from my first attempt: 1️⃣ Restore = addition ?
Do you mean by this that I have to ADD the red lines without EXCLUDE of the GREEN lines ? 2️⃣ How to find On my end (my plugin folder) I only have Forgive for my lack of knowledge :) |
No problem! I'll message you on Discord about it. |
Thank you very much @timhor !!! I got your message on discord and I will reply there! |
Hello @timhor !!!!
A brief introduction before talking about the FR :)
1️⃣ In version
1.0.7
we had the command Select Word that selected the word based on the caret cursor position.2️⃣ In version
1.0.8
this command gains superpower which lets us select word and select the next occurrence as well :)My FR is about bring back the
Select Word
in a separated commandI know that look strange to have two commands like this. Let me show how
Select Word
can have multiple workflows when you combine with other plugins :)My Workflow
ℹ️ I import a lot of content to Obsdian. Especially Book Highlights, Podcasts Transcriptions and Web Artciles
ℹ️ All my writing is created inside Obsidian. Even when I have to send a message, I write first in Obsdiamn than send to external sources.
ℹ️ Additionally, I use a lot of html tags to decorate my notes.
📸 Source Mode x Reading Mode
This way I use a lot of Line Selection, Paragraphs Selection and Word Selection to easily apply this decorations to my notes.
📸 This is my QuickAdd Macro
This Macro automatically Select the word at the caret cursor and then apply the decoration.
The beautiful thing here is that the command respects if something where already select
📽 2 Selected Words Selected
IMG_0578.MOV
Why I need a separated Command ?
The video below shows why I need a command to only Select one Word
📽 3x Michael Jordan
IMG_0579.MOV
In words: when I have two words select and I have the same words before and/or after the command
Select Word and the Next Occurrence
will apply the decoration to the next other matchesBut when we have a workflow where we want to apply some type of rule (in my case html tags) only to the select text and avoid the next occcurance I can use the same command.
-The best scenario for this would be the old command that only selects one
Michael Jordan
:)We can apply this same insight to many workflow in Obsidian, I decided to share this one because its easy to see :)
Thanks for reading this !!!!! I hope you like my suggestion 🙏 🙏 🙏
Sorry for the long text. My idea was to show to you that a isolated command is something really important :)
Let me know if you need more information !!!
Have a great day 🌞
The text was updated successfully, but these errors were encountered: