[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Nano-devel] [PATCH] New feature: Erase prev/next word if ctrl is held w

From: Marco Diego Aurélio Mesquita
Subject: [Nano-devel] [PATCH] New feature: Erase prev/next word if ctrl is held with backspace/delete
Date: Thu, 12 Jul 2018 19:12:31 -0300

The attached patch modifies nano so that, when ctrl is held, backspace
erases the previous word, while delete erases the next word. This is a
very common feature in many editors and is one of the few reaming that
I miss from gedit.

It was quickly hacked but seems to work fine on gnome-terminal and
xterm. I couldn't find the way to get the key codes for ctrl +
backspace nor  ctrl + delete; so, I determined it experimentally. It
would be nice to detect it the same way ctrl+arrows are detected. How
can I properly get the codes for ctrl + backspace and ctrl + delete?

Attachment: 0001-Erase-previous-or-next-word-if-ctrl-is-held-when-res.patch
Description: Text Data

reply via email to

[Prev in Thread] Current Thread [Next in Thread]