From f47b513f8ac32d5eeebc1de187232c99751562a2 Mon Sep 17 00:00:00 2001 From: pommicket Date: Thu, 23 Mar 2023 14:25:36 -0400 Subject: add macro information to README --- README.md | 10 ++++++++++ main.c | 1 + 2 files changed, 11 insertions(+) diff --git a/README.md b/README.md index 71f1fed..dd64d72 100644 --- a/README.md +++ b/README.md @@ -34,6 +34,7 @@ in other editors. - Go to definition - Go to line number - Indent/dedent selection, comment/uncomment selection +- Keyboard macros ## Getting started with ted @@ -115,6 +116,15 @@ No matter what you should include a built-in theme (even if you replace every single color), because more colors may be added to ted in the future, and you will want them to be set to something reasonable. +## Keyboard macros + +To record a macro, press Ctrl+F1/2/3/etc. While recording a macro, +you won't be able to click or drag (this is to make sure your macro works consistently). +Then press Ctrl+F*n* again to stop recording. You can execute the macro with Shift+F*n*. + +Currently macros are always lost when ted is closed. The ability to save macros will probably +be added eventually. + ### IDE-like features If you are working in a compiled language, like C, you can press F4 to compile your code. The default is to run `make` in diff --git a/main.c b/main.c index 5b243a2..b13a7a3 100644 --- a/main.c +++ b/main.c @@ -13,6 +13,7 @@ FUTURE FEATURES: if there are too many files, give an error like "use a different tool for this" - config variables - bind key to multiple commands + - convert macro to command list - plugins? - TED_PLUGIN macro defined before including ted.h this can remove struct definitions to guarantee forwards compatibility -- cgit v1.2.3