[quote]thx. but can these 2 action (“eol” & “hardeol”, “bol” & “hardbol”) combine to 1 key, as I described on the 1st post?
[/quote]
Nice question, it is possible. Now, I’m not sure of the best way to do it. You need to take care of the selections.
True, I can’t rememebr how I discovered the command. It was something like a search for “eol”.
wich returns this:
[code]Searching 77 files for “hardeol”
C:\Users\luna\AppData\Roaming\Sublime Text 2\Packages\Default\Add Line in Braces.sublime-macro:
2 {“command”: “insert”, “args”: {“characters”: “\n\n”} },
3 {“command”: “move”, “args”: {“by”: “lines”, “forward”: false} },
4: {“command”: “move_to”, “args”: {“to”: “hardeol”, “extend”: false} },
5 {“command”: “reindent”, “args”: {“single_line”: true} }
6 ]
C:\Users\luna\AppData\Roaming\Sublime Text 2\Packages\Default\Add Line.sublime-macro:
1
2: {“command”: “move_to”, “args”: {“to”: “hardeol”}},
3 {“command”: “insert”, “args”: {“characters”: “\n”}}
4 ]
C:\Users\luna\AppData\Roaming\Sublime Text 2\Packages\Default\Delete to Hard EOL.sublime-macro:
1
2: {“command”: “move_to”, “args”: {“to”: “hardeol”, “extend”: true}},
3 {“command”: “add_to_kill_ring”, “args”: {“forward”: true}},
4 {“command”: “right_delete”}
3 matches across 3 files
[/code]
I have set this some time ago in my user/Default.sublime-keymap
{ "keys": "home"], "command": "move_to", "args": {"to": "hardbol", "extend": false} },
{ "keys": "end"], "command": "move_to", "args": {"to": "hardeol", "extend": false} },