sandy

text editor
git clone git://git.suckless.org/sandy
Log | Files | Refs | README | LICENSE

commit 06056d1c78fcfaa35c07486e992b581f6309bf0f
parent 642ea33c2bf764250a083cade278156d183a790a
Author: Rafael Garcia <rafael.garcia.gallego@gmail.com>
Date:   Mon, 29 Aug 2011 19:01:52 +0200

More consistent behavior for ^H and ^D. Also, some teminals generate ^H on backspace, which was annoying.
Diffstat:
config.def.h | 3+--
sandy.1 | 6+++---
2 files changed, 4 insertions(+), 5 deletions(-)

diff --git a/config.def.h b/config.def.h @@ -78,7 +78,7 @@ static const Key curskeys[] = { /* Plain keys here, no CONTROL or META */ { .keyv.i = KEY_DC, { t_rw, 0, 0, 0 }, f_delete, { .m = m_nextchar } }, { .keyv.i = KEY_IC, { t_sel, 0, 0, 0 }, f_pipero, TOCLIP }, { .keyv.i = KEY_SDC, { t_sel, t_rw, 0, 0 }, f_delete, { .m = m_tosel } }, -{ .keyv.i = KEY_SDC, { t_rw, 0, 0, 0 }, f_delete, { .m = m_prevchar } }, +{ .keyv.i = KEY_SDC, { t_rw, 0, 0, 0 }, f_delete, { .m = m_nextchar } }, { .keyv.i = KEY_SIC, { t_rw, 0, 0, 0 }, f_pipenull, FROMCLIP }, { .keyv.i = KEY_HOME, { t_ai, 0, 0, 0 }, f_moveboth, { .m = m_smartbol } }, { .keyv.i = KEY_HOME, { 0, 0, 0, 0 }, f_moveboth, { .m = m_bol } }, @@ -115,7 +115,6 @@ static const Key stdkeys[] = { { .keyv.c = CONTROL('F'), { 0, 0, 0, 0 }, f_move, { .m = m_nextchar } }, { .keyv.c = META('f'), { 0, 0, 0, 0 }, f_move, { .m = m_nextword } }, { .keyv.c = CONTROL('G'), { t_sel, 0, 0, 0 }, f_select, { .m = m_stay } }, -{ .keyv.c = CONTROL('H'), { t_sel, t_rw, 0, 0 }, f_delete, { .m = m_tosel } }, { .keyv.c = CONTROL('H'), { t_rw, 0, 0, 0 }, f_delete, { .m = m_prevchar } }, { .keyv.c = CONTROL('I'), { t_rw, 0, 0, 0 }, f_insert, { .v = "\t" } }, { .keyv.c = CONTROL('J'), { t_rw, t_ai, 0, 0 }, f_pipeai, AUTOINDENT } , diff --git a/sandy.1 b/sandy.1 @@ -130,11 +130,11 @@ Move to the opposite size of the selection, usually to modify it. .SS Deleting Unlike in most other text editors, inserting text while a selection is active does not delete its content. .TP -.BR Ctrl\-d " or " Delete +.BR Ctrl\-d Kill the current selection and put it in the clipboard. If there is no selection, delete next character. .TP -.BR Ctrl\-h " or " Shift\-Delete -Delete the current selection if any. Otherwise delete previous character. +.BR Delete " or " Shift\-Delete +Delete the current selection if any. Otherwise delete next character. .TP .BR Backspace Delete previous character.