tihirvon / dex

Dextrous text editor
GNU General Public License v2.0
165 stars 13 forks source link

Enhancement: Smart home key #30

Open ikrase opened 9 years ago

ikrase commented 9 years ago

A number of editors have the home key or BOL command move the cursor to the first non-whitespace character in a line if the cursor was anywhere other than that position, and to the actual beginning of the line if it was already at that position. As such one press will generally be at the beginning of text and two at the beginning of the line.

Is there a chance we could have this in Dex?

pepa65 commented 8 years ago

I've added bolf and eolf commands for smart-home and smart-end. In order not to mess with existing commands (and bindings), I thought it least disruptive to add 2 new commands, that can be used if wanted.

pepa65 commented 7 years ago

To pick up the thread from the last comment, I added smarthome and smartend which don't do what this issue was originally about... (They go to the beginning/end of the line/screen/file. It is possible to also integrate the originally requested feature, but that hasn't happened yet.)

craigbarnes commented 5 years ago

This has been implemented in the dte fork as bol -s, in commit 92084b00.