sandy

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

commit 8c8044b6a632351bc08615f8bc49ec5b603a6a0b
parent a413df0cf1ebcc7e9da18094e3dc721ccdc2d0d4
Author: Rafael Garcia <rafael.garcia.gallego@gmail.com>
Date:   Tue,  5 Apr 2011 13:12:04 +0200

Add Ctrl-q as quit binding; it seems default and was unused.
Diffstat:
config.def.h | 2++
sandy.1 | 2+-
2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/config.def.h b/config.def.h @@ -133,6 +133,8 @@ static const Key stdkeys[] = { { CONTROL('@'), { 0, 0, 0, 0 }, f_move, { .m = m_tomark } }, /* File operations */ +{ CONTROL('Q'), { t_mod, 0, 0, 0 }, f_title, { .v = "WARNING! File not saved! Press META+SHIFT+Q to quit" } }, +{ CONTROL('Q'), { 0, 0, 0, 0 }, f_toggle, { .i = S_Running } }, { META('q'), { t_mod, 0, 0, 0 }, f_title, { .v = "WARNING! File not saved!" } }, { META('q'), { 0, 0, 0, 0 }, f_toggle, { .i = S_Running } }, { META('Q'), { 0, 0, 0, 0 }, f_toggle, { .i = S_Running } }, diff --git a/sandy.1 b/sandy.1 @@ -133,7 +133,7 @@ Set mark in current position. Go to mark. Prepend with Ctrl\-g to select to mark. .SS File operations .TP -.B Meta\-q +.B Ctrl-q or Meta\-q Quit if the file has not been modified. .TP .B Meta\-Shift\-q