From 59320a749ab1aa37a7f5e13a539d61c0ae6c3ab4 Mon Sep 17 00:00:00 2001 From: Krzosa Karol Date: Wed, 7 Jan 2026 08:59:54 +0100 Subject: [PATCH] Start the guide --- src/text_editor/commands.cpp | 4 ++-- src/text_editor/guide.txt | 23 +++++++++++++++++++++++ 2 files changed, 25 insertions(+), 2 deletions(-) create mode 100644 src/text_editor/guide.txt diff --git a/src/text_editor/commands.cpp b/src/text_editor/commands.cpp index 92197a5..a86e718 100644 --- a/src/text_editor/commands.cpp +++ b/src/text_editor/commands.cpp @@ -1138,7 +1138,7 @@ void CMD_OpenUpFolder() { BSet main = GetBSet(PrimaryWindowID); String name = ChopLastSlash(main.buffer->name); Open(name); -} RegisterCommand(CMD_OpenUpFolder, "ctrl-period", "Open current's file directory or up directory in other cases"); +} RegisterCommand(CMD_OpenUpFolder, "ctrl-o", "Open current's file directory or up directory in other cases"); void CMD_EncloseLine() { BSet active = GetBSet(ActiveWindowID); @@ -1182,7 +1182,7 @@ void CMD_OpenLoadWord() { // window->active_goto_list = active.view->id; // window->goto_list_pos = active.view->carets[0].range.min; Open(load_word); -} RegisterCommand(CMD_OpenLoadWord, "ctrl-q", "Open a link under the caret (file link, url, command) or open the selection"); +} RegisterCommand(CMD_OpenLoadWord, "ctrl-q | f12", "Open a link under the caret (file link, url, command) or open the selection"); void CMD_KillSelectedLines() { BSet active = GetBSet(ActiveWindowID); diff --git a/src/text_editor/guide.txt b/src/text_editor/guide.txt new file mode 100644 index 0000000..f830b7d --- /dev/null +++ b/src/text_editor/guide.txt @@ -0,0 +1,23 @@ + +Hi! Welcome to my world, the world where text is all around and plentiful. I'm tee, +a simple text editor that hopefully will help you in your text journey! + +Execute some of these using your mouse right button, hover over a +word like ":New" and click! + +:New (ctrl-n) - create new text file +:OpenUpFolder (ctrl-o) - navigate directories +:ShowCommands (ctrl-shift-p) - open up the command lister +:ShowBufferList (ctrl-p) - open up a lister with open files + +Alternatively you can open with your keyboard - ctrl-q / f12, try that also! + +----------------------------------------------------------------------------------------- + +Navigate to next parts of the guide by executing them like these commands you just played +with: + +guide_big_picture.txt +guide_project.txt +guide_bindings_and_config.txt +