Skip to content
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] Enable Typora to select text between backticks/quotes with mouse clicks #6171

Open
alexbarten opened this issue Nov 9, 2024 · 0 comments

Comments

@alexbarten
Copy link

As far as I know, the intended way to select text using mouse clicks in Typora is:

First click: position text cursor
Second click: select the word under the cursor
Third click: expand selection to the current paragraph

This suffices when I am working with plain text.

But often I am writing manuals, to be used by software developers, which (for example) may include a folder path, and this will be surrounded with back ticks. Or I quote someone, surrounding their text with double quotes. These text items cannot be selected with mouse clicks. I often want to select a small code example (or folder path) in this way, and currently that takes more time than I would like.

Note that Obsidian and VSCode work exactly like Typora, so I cannot use them instead (I intend to suggest this option to them as well).

I propose an optional step between step 2 and 3. In other words, four mouse clicks on the same cursor position would have these effects:

First click: position text cursor
Second click: select the word under the cursor
Third click: if the cursor is positioned between single quotes, double quotes, or back ticks, select the text between quotes, excluding the quotes/back ticks themselves
Fourth click: expand selection to the current paragraph

Alternatively, a five step approach would be even greater. This would combine my proposal with how LibreOffice works, as LibreOffice already has a four step approach, where the third step selects the sentence under the cursor.

First click: position text cursor
Second click: select the word under the cursor
Third click: if the cursor is positioned between single quotes, double quotes, or back ticks, select the text between quotes, excluding the quotes/back ticks themselves
Fourth click: select the full sentence
Fifth click: expand selection to the current paragraph

Would this be something you can implement? It would make Typora drastically more usable for me!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant