aboutsummaryrefslogtreecommitdiff
path: root/config.def.h
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2015-01-14 12:35:26 +0100
committerMarc André Tanner <mat@brain-dump.org>2015-01-14 12:51:36 +0100
commit6eef82ce016971ec17c3cbeae5d24707a315d068 (patch)
tree807821ccf03db5fe7ae024e708f4a6ca58323cc7 /config.def.h
parent6f53d329beca478d60f6e575918d73eb9cf1214f (diff)
downloadvis-6eef82ce016971ec17c3cbeae5d24707a315d068.tar.gz
vis-6eef82ce016971ec17c3cbeae5d24707a315d068.tar.xz
Remove nano like frontend for now
If time permits I still want to experiment with different editing paradigms and write a proper nano/sandy/sam frontend but at the moment it is just bitrotting and not very useful.
Diffstat (limited to 'config.def.h')
-rw-r--r--config.def.h71
1 files changed, 0 insertions, 71 deletions
diff --git a/config.def.h b/config.def.h
index 59392a7..1d3523a 100644
--- a/config.def.h
+++ b/config.def.h
@@ -775,71 +775,6 @@ static Mode vis_modes[] = {
},
};
-/* incomplete list of useful but currently missing functionality from nano's help ^G:
-
-^X (F2) Close the current file buffer / Exit from nano
-^O (F3) Write the current file to disk
-^J (F4) Justify the current paragraph
-
-^R (F5) Insert another file into the current one
-^W (F6) Search for a string or a regular expression
-
-^K (F9) Cut the current line and store it in the cutbuffer
-^U (F10) Uncut from the cutbuffer into the current line
-^T (F12) Invoke the spell checker, if available
-
-
-^_ (F13) (M-G) Go to line and column number
-^\ (F14) (M-R) Replace a string or a regular expression
-^^ (F15) (M-A) Mark text at the cursor position
-M-W (F16) Repeat last search
-
-M-^ (M-6) Copy the current line and store it in the cutbuffer
-M-V Insert the next keystroke verbatim
-
-XXX: CONTROL(' ') = 0, ^Space Go forward one word
-*/
-
-static KeyBinding nano_keys[] = {
- { { CONTROL('D') }, call, { .f = editor_delete_key } },
- BACKSPACE( call, f, editor_backspace_key ),
- { { CONTROL('F') }, movement, { .i = MOVE_CHAR_NEXT } },
- { { CONTROL('P') }, movement, { .i = MOVE_SCREEN_LINE_UP } },
- { { CONTROL('N') }, movement, { .i = MOVE_SCREEN_LINE_DOWN } },
- { { CONTROL('Y') }, wscroll, { .i = -PAGE } },
- { { KEY(F(7)) }, wscroll, { .i = -PAGE } },
- { { CONTROL('V') }, wscroll, { .i = +PAGE } },
- { { KEY(F(8)) }, wscroll, { .i = +PAGE } },
-#if 0
- // CONTROL(' ') == 0 which signals the end of array
- { { CONTROL(' ') }, movement, { .i = MOVE_LONGWORD_START_NEXT } },
-#endif
- { { META(' ') }, movement, { .i = MOVE_LONGWORD_START_PREV } },
- { { CONTROL('A') }, movement, { .i = MOVE_LINE_START } },
- { { CONTROL('E') }, movement, { .i = MOVE_LINE_END } },
- { { META(']') }, movement, { .i = MOVE_BRACKET_MATCH } },
- { { META(')') }, movement, { .i = MOVE_PARAGRAPH_PREV } },
- { { META('(') }, movement, { .i = MOVE_PARAGRAPH_NEXT } },
- { { META('\\') }, movement, { .i = MOVE_FILE_BEGIN } },
- { { META('|') }, movement, { .i = MOVE_FILE_BEGIN } },
- { { META('/') }, movement, { .i = MOVE_FILE_END } },
- { { META('?') }, movement, { .i = MOVE_FILE_END } },
- { { META('U') }, undo, { NULL } },
- { { META('E') }, redo, { NULL } },
-#if 0
- { { CONTROL('I') }, insert, { .s = "\t" } },
- /* TODO: handle this in vis to insert \n\r when appriopriate */
- { { CONTROL('M') }, insert, { .s = "\n" } },
-#endif
- { { CONTROL('L') }, call, { .f = editor_draw } },
- { /* empty last element, array terminator */ },
-};
-
-static Mode nano[] = {
- { .parent = NULL, .bindings = basic_movement, },
- { .parent = &nano[0], .bindings = nano_keys, .input = vis_mode_insert_input },
-};
-
/* list of vis configurations, first entry is default. name is matched with
* argv[0] i.e. program name upon execution
*/
@@ -850,12 +785,6 @@ static Config editors[] = {
.statusbar = statusbar,
.keypress = vis_keypress,
},
- {
- .name = "nano",
- .mode = &nano[1],
- .statusbar = statusbar,
- .keypress = vis_keypress,
- },
};
/* default editor configuration to use */