bugGNU nano - Bugs: bug #54837, [Request] allow zapping a marked...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #54837: [Request] allow zapping a marked region without changing the cutbuffer

Submitted by:  Benno Schulenberg <bens>
Submitted on:  Sun 14 Oct 2018 06:15:25 PM UTC  
 
Severity:  1 - Wish Status:  Fixed
Assigned to:  None Open/Closed:  Closed

( Jump to the original submission)

Mon 12 Nov 2018 06:50:06 PM UTC, comment #8: 

Released in 3.2.  Main patches by Brand Huntsman.

Benno Schulenberg <bens>
Project Administrator
Sun 04 Nov 2018 11:28:52 AM UTC, comment #7: 

Fixed in git, essentially by commits 5662a388 and ae3ec178.

Benno Schulenberg <bens>
Project Administrator
Thu 25 Oct 2018 08:00:40 PM UTC, comment #6: 

Attached yet another update of the fourth patch.  It includes the missing NANO_TINY #ifdefs, and the escape sequence handler for urxvt should now work properly, due to melding Benno Schulenberg's code from here:

http://lists.gnu.org/archive/html/nano-devel/2018-10/msg00126.html

(file #45295)

David Lawrence Ramsey <dolorous>
Project Member
Wed 24 Oct 2018 07:40:23 PM UTC, comment #5: 

Also, the section in the new fourth patch in parse_kbinput() that interprets urxvt's escape sequence for M-Del needs NANO_TINY #ifdefs.  But since urxvt seems to have some issues with keystrokes in general, I'll hold off on it for now.

David Lawrence Ramsey <dolorous>
Project Member
Wed 24 Oct 2018 03:41:18 PM UTC, comment #4: 

Attached an updated fourth patch, which seems to fix -K/--rebindkeypad on urxvt.  It probably needs testing, since the code dealing with double escapes in parse_kbinput() is tricky.

(file #45283)

David Lawrence Ramsey <dolorous>
Project Member
Wed 24 Oct 2018 09:38:05 AM UTC, comment #3: 

Tweaked first three patches, the fourth patch #45265 is unchanged.

(file #45274, file #45275, file #45276)

Brand Huntsman <brand>
Tue 23 Oct 2018 03:01:24 AM UTC, comment #2: 

The attached patches add a bindable "zap" function and bind it to M-Del by default. It cuts a selection or line, or to the line ending if cutfromcursor is enabled. The -Z/--zap command line options or "set zap" in nanorc allow zapping selections with backspace or delete keys.

(file #45262, file #45263, file #45264, file #45265)

Brand Huntsman <brand>
Sun 14 Oct 2018 06:23:08 PM UTC, comment #1: 

Bug #53534 probably requested the same thing, but the report was rather thin on details.

Benno Schulenberg <bens>
Project Administrator
Sun 14 Oct 2018 06:15:25 PM UTC, original submission:  

It would be nice if <Delete> and <Backspace> could be made to erase a marked region without putting the erased text into the cutbuffer -- just like those keys behave in for example Firefox and Gedit and Geany.

(Original request by Liu Hao: http://lists.gnu.org/archive/html/nano-devel/2018-10/msg00007.html.)

Benno Schulenberg <bens>
Project Administrator

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by dolorous (Updated the item)
  • -email is unavailable- added by brand (Updated the item)
  • -email is unavailable- added by bens (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

     

     

    Follow 12 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2018-11-12 bens Open/ClosedOpen => Closed
    2018-11-04 bens StatusIn Progress => Fixed
    2018-10-25 dolorous Attached File- => Added zap-0004-input-properly-read-Alt-Delete-when-using-K-rebindkey-v3.patch, #45295
    2018-10-24 dolorous Attached File- => Added zap-0004-input-properly-read-Alt-Delete-when-using-K-rebindkey-v2.patch, #45283
    2018-10-24 brand Attached File- => Added zap-0001-add-bindable-zap-function-v2.patch, #45274
        Attached File- => Added zap-0002-zap-selection-with-Bsp-Del-keys-when-enabled-v2.patch, #45275
        Attached File- => Added zap-0003-bind-zap-to-M-Del-key-v2.patch, #45276
    2018-10-23 bens StatusNone => In Progress
    2018-10-23 brand Attached File- => Added zap-0001-add-bindable-zap-function.patch, #45262
        Attached File- => Added zap-0002-zap-selection-with-Bsp-Del-keys-when-enabled.patch, #45263
        Attached File- => Added zap-0003-bind-zap-to-M-Del-key.patch, #45264
        Attached File- => Added zap-0004-input-properly-read-Alt-Delete-when-using-K-rebindkey.patch, #45265

    Back to the top


    Powered by Savane 3.5