From 6408e2fabcd251861124045f37a040cc7d4ac465 Mon Sep 17 00:00:00 2001 From: tv Date: Sun, 27 Jul 2014 19:08:55 +0200 Subject: rm crufty comments --- Main.hs | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/Main.hs b/Main.hs index b244de1..df6da8d 100644 --- a/Main.hs +++ b/Main.hs @@ -292,7 +292,6 @@ charToCode c = "\\x" ++ showIntAtBase 16 intToDigit (ord c) "" --- TODO pressing ESC, then F11 etc. is ugly nmap = [ ("\x01", MotionCommand GotoFirstChar) , ("\x05", MotionCommand GotoEndOfLine) @@ -304,12 +303,6 @@ nmap = , ("\x0a", ExecuteInputBuffer) , ("\x7f", KillLastChar) -- Delete , ("\x08", KillLastChar) -- BackSpace - - -- TODO replace by backward-word - -- forward-word - -- OR - -- [MotionCommand SkipSpaceRight, MotionCommand $ GotillFindRight 1 ' '] - -- etc. , ("\x1bOc", MotionCommand $ WordsForward 1) , ("\x1bOd", MotionCommand $ WordsBackward 1) ] @@ -360,12 +353,21 @@ nmap = ++ [unboundSequence "\x1b[21~" ""] ++ [unboundSequence "\x1b[23~" ""] ++ [unboundSequence "\x1b[24~" ""] + ++ [unboundSequence "\x1b\x1b[11~" ""] + ++ [unboundSequence "\x1b\x1b[12~" ""] + ++ [unboundSequence "\x1b\x1b[13~" ""] + ++ [unboundSequence "\x1b\x1b[14~" ""] + ++ [unboundSequence "\x1b\x1b[15~" ""] + ++ [unboundSequence "\x1b\x1b[17~" ""] + ++ [unboundSequence "\x1b\x1b[18~" ""] + ++ [unboundSequence "\x1b\x1b[19~" ""] + ++ [unboundSequence "\x1b\x1b[20~" ""] + ++ [unboundSequence "\x1b\x1b[21~" ""] + ++ [unboundSequence "\x1b\x1b[23~" ""] + ++ [unboundSequence "\x1b\x1b[24~" ""] ++ [unboundSequence "\x1b\x1b[2~" ""] ++ [unboundSequence "\x1b\x1b[3~" ""] - ++ map (\ i -> unboundSequence ("\x1b\x1b[" ++ show i ++ "~") - ("")) - [11..24] ++ [unboundSequence "\x1b\x7f" ""] ++ [unboundSequence "\x1b\x0a" ""] -- cgit v1.2.3