summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2023-03-23 14:25:36 -0400
committerpommicket <pommicket@gmail.com>2023-03-23 14:25:36 -0400
commitf47b513f8ac32d5eeebc1de187232c99751562a2 (patch)
treed8ad7dcf3c197d7b9e82ee9691952c84810dfbb6
parent9b572a245f8b348dd6c0df9eab2637d445b61fbc (diff)
add macro information to README
-rw-r--r--README.md10
-rw-r--r--main.c1
2 files changed, 11 insertions, 0 deletions
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