View Single Post
Old 03-23-2021, 06:28 PM   #56
un_pogaz
Chalut o/
un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.
 
un_pogaz's Avatar
 
Posts: 452
Karma: 678910
Join Date: Dec 2017
Device: Kobo
Quote:
Originally Posted by odamizu View Post
Maybe it's just a Mac thing, but double-clicking on a word to select it, and triple-clicking on a word to select the entire paragraph, is something I've been doing for decades and works in pretty much all Mac programs. Also, double-clicking a word then dragging will select all whole words in the drag, so you don't have to fiddle with the mouse to be precise.
Same behavior on Windows on my side for the Double-click.

To answer at KevinH question, I prefer the A for the Shift+Double-click (select the content), mainly because it is easier to remove empty tags by others shortcuts and features.

But abandoning the other behavior would be a shame, because selecting the whole tag is really convenient.
I suggest that you try to add Shift+Ctrl+Double-click to select the entire tag.
Code-side, you would just have to prioritize (or somehow else) the Shift+Ctrl+Double-click, to maintain the "go to CSS rule" behavior of the Ctrl+Click (which is also very cool).

Spoiler:
I don't know how C++ works, so forgive me if this idea is stupid, or impossible to implement for technical reasons:
Code:
if Shift and !Ctrl:
  if Double-click:
    select_content_tag();

else if Shift and Ctrl:
  if Double-click:
    select_tag();

else if Ctrl and !Shift:
  if Click:
    go_to_css();

Last edited by un_pogaz; 03-23-2021 at 06:40 PM.
un_pogaz is offline