• You are not logged in.

    Extend Mode Kill Line

    • Started by bph
    • 3 Replies:
    • Reputation: 11
    • Registered: 06-Jun-2013
    • Posts: 560

    Hi All,

    Does extend mode have a kill line option? Similar to C-k in emacs?

    Offline
    • 0
    • Reputation: 214
    • From: Viken, Norway
    • Registered: 13-Dec-2006
    • Posts: 5,360

    What I use is Home/End with selection {Ext+(Y,S+L)}, after which you can delete {Ext+O} or cut or copy the line as fits you.
    There's also some more advanced movement/selection tricks as detailed in the BigBag Extend topic, but I don't use those much.

    I know that's not a single key command and you may want one, so if you need it a lot you could add it as an Ext-tap command or on one of the Extend layer keys you don't need. To get a kill line with EPKL for Windows, you'd use something like this:

    α{Home}+{End}{Del}

    Or maybe select line is best after all? It's certainly a bit safer. If you want that, remove the final {Del}.

    Last edited by DreymaR (25-Sep-2020 11:48:10)

    *** Learn Colemak in 2–5 steps with Tarmak! ***
    *** Check out my Big Bag of Keyboard Tricks for Win/Linux/TMK... ***

    Offline
    • 0
    • Reputation: 117
    • From: UK
    • Registered: 14-Apr-2014
    • Posts: 978

    My favourite way is a slight variant, press Extend+L for Home if not already at start of line, then do Extend+S+E (i.e shift+down). which selects the whole line including the line feed character.

    Using Colemak-DH with Seniply.

    Offline
    • 0
    • Reputation: 214
    • From: Viken, Norway
    • Registered: 13-Dec-2006
    • Posts: 5,360

    Excellent point! I suppose that's more like what BPH wanted and Emacs/Vim do. In the code above, for a proper line kill with the line break use:

    <l>     = α{Home}+{Down}{Del} 	; l -> Delete/kill current line (remove {Del} for line select)

    (Shown here as a Dead Key, I tried it on {tap-Ext,l}.)

    Last edited by DreymaR (25-Sep-2020 11:48:39)

    *** Learn Colemak in 2–5 steps with Tarmak! ***
    *** Check out my Big Bag of Keyboard Tricks for Win/Linux/TMK... ***

    Offline
    • 0