A line cannot be selected triple clicking it, why?
Select a line with triple click
Why should it be???
as far as I know people that want to highlight a line in MOST windows editors either use the shortcutā¦ sublime is ctrl+L, click on the āgutterā (numbers line), or do shift+end/home, or last use the mouseā¦, double click by standard in MOST windows editors select the current word under the cursorā¦ try it in notepadā¦ triple clickā¦ nothing?
Now, I am not picking up on u or your idea, I think is good to have choices but the āwhy not!?ā attitude is not good
Bad news is that I donāt think you can even do a plugin for it at least not with sublime api, you can try autohotkey, I think it could be possible with a PostMessage to send the command to highlight the line with triple clickā¦
I donāt see a bad attitude. Itās just a question!
Maybe itās a culture clash?
actually it is a common behavior of most windows/gui application, so i guess users have tendency to try and use it.
[quote=ātgkeulā]
I donāt see a bad attitude. Itās just a question!
Maybe itās a culture clash?[/quote]
maybe ? lol
Because most of the programs that deal with text (Notepad does not deserve to be called program) have that shortcut.
Edit: and by the way, anyone knows why st selects, in addition to the line chosen, the beginning of the line after?
[quote=āmatteo.gazzoniā]Because most of the programs that deal with text (Notepad does not deserve to be called program) have that shortcut.
Edit: and by the way, anyone knows why st selects, in addition to the line chosen, the beginning of the line after?[/quote]
Because it selects the line ending character (\n)
If you guys want this functionality Iām sure autohotkey can make it possibleā¦
Hereās the autohotkey code if you want to select the line with a triple clickā¦
This just sends ctrl+L to sublimetext
Tested and worksā¦ wonāt affect triple click in any other appā¦ if you select multiple lines ctrl+click and then on the last line u triple click itāll select all lines
[code]#IfWinActive, ahk_class SKMainWindowClass
~*LButton::
{
if clickCount > 0
{
clickCount += 1
return
}
clickCount = 1
SetTimer, clickHandler, 400
return
clickHandler:
SetTimer, clickHandler, off
if clickCount = 3
{
;Triple click detected, send Ctrl+L shortcut to select the lineā¦
SendEvent, ^l
}
clickCount = 0
return
}
#IfWinActive[/code]
+1 on wanting triple-click = select whole line.
This is common behavior in every other editor Iāve used, I think itās quite intuitive, as Iām sure I found it through button-bashing, not documentation.
1 click = cursor position
2 click = select word
3 click = select entire line
Itās easy enough to do a single-click again if you want to de-select something. (ie mimic current behaviour)
As for CTRL+L, my vote/suggestion would be to make currently selected line lower-case. Iāve seen that elsewhere and it makes sense.
Personnally I like the current behavior (CTRL+L = selectLine)
You can add something like this to User\Default.sublime-keymap to override the default behavior:
<binding key="ctrl+l" command="lowerCase"/>
Here is a quick survey of applications I have installed on my WinXP system. These applications support triple click to select the entire line (or paragraph, where applicable):
Notepad2
Notepad++
Wordpad
Firefox
Internet Explorer
Google Chrome
Word
Powerpoint
Outlook Express
Photoshop
These applications do NOT support triple click:
Notepad
Sublime Text
Howās that for an argument?
We solved this long time ago, I posted a script that allows sublime and pretty much any app to have triple click. Why bring it back ?
We solved this long time ago, I posted a script that allows sublime and pretty much any app to have triple click. Why bring it back ?
Because this a case where Sublime Text is missing a feature which a part of a de facto Windows standard, and shouldnāt rely on hacks requiring third party / external applications. Weāre posting here because we want to make a great program even better.
[quote=ācheesecake23ā]
We solved this long time ago, I posted a script that allows sublime and pretty much any app to have triple click. Why bring it back ?
Because this a case where Sublime Text is missing a feature which a part of a de facto Windows standard, and shouldnāt rely on hacks requiring third party / external applications. Weāre posting here because we want to make a great program even better.[/quote]
Agree. I hope jon adds it, I myself donāt like to resort to 3rd party apps unless necessary.
I agree on this, I use this a lot myself as well. Even though Iām trying to get more into keyboard shortcuts, saving time and using the mouse (RSI?). Less mouse = less lost time.
Although not as user friendly as triple click, in order to select a whole line with a mouse, all you have to do is single click or double click on the line and drag your cursor down to the next line.
This works in Notepad.
Whatās with all of the AutoHotKey people? Iām an AutoIt person me, and an MVP too