aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README.md12
-rw-r--r--config.def.h16
2 files changed, 17 insertions, 11 deletions
diff --git a/README.md b/README.md
index 9ddf504..8b51693 100644
--- a/README.md
+++ b/README.md
@@ -14,11 +14,11 @@ At the moment cdraw has the following features:
- custom palettes (although it will use only *def_palette_path*)
- binary format for projects
- importing/exporting
+- undo/redo actions
And these features are waiting to be implemented:
- custom tool cursor
-- undo/redo actions
- layers + frames
Controls
@@ -28,10 +28,12 @@ All the keybindings can be changed in *config.h*.
- **=/-** for zooming in/out
- **arrows** for moving the canvas
-- **S** save file (using terminal input)
-- **O** open file (using terminal input)
-- **SHIF+I** export image (using terminal input)
-- **SHIF+E** import image (using terminal input)
+- **SHIFT+N** new file
+- **SHIFT+S** save file (using system picker - terminal input by default)
+- **SHIFT+O** open file (using system picker - terminal input by default)
+- **SHIFT+I** export image (using system picker - terminal input by default)
+- **SHIFT+E** import image (using system picker - terminal input by default)
+- **U/R** undo/redo an action
- **B** select pencil
- **E** select eraser
- **F** select fill tool
diff --git a/config.def.h b/config.def.h
index ee8e1fa..d05b051 100644
--- a/config.def.h
+++ b/config.def.h
@@ -16,18 +16,22 @@ static Key keys[] = {
{0, SDLK_DOWN, user_canvas_move_y, {.i = -10}},
{0, SDLK_LEFT, user_canvas_move_x, {.i = 10}},
{0, SDLK_RIGHT, user_canvas_move_x, {.i = -10}},
- {0, SDLK_s, user_canvas_save, {.v = NULL}},
- {0, SDLK_r, user_canvas_refresh, {.v = NULL}},
- {0, SDLK_o, user_canvas_open, {.s = NULL}},
+ {0, SDLK_u, user_canvas_undo, {.v = NULL}},
+ {0, SDLK_r, user_canvas_redo, {.v = NULL}},
+ {KMOD_LSHIFT, SDLK_n, user_canvas_create_new, {.v = NULL}},
+ {KMOD_LSHIFT, SDLK_s, user_canvas_save, {.v = NULL}},
+ {KMOD_LSHIFT, SDLK_o, user_canvas_open, {.s = NULL}},
{KMOD_LSHIFT, SDLK_e, user_canvas_export_png, {.v = NULL}},
{KMOD_LSHIFT, SDLK_i, user_canvas_import_png, {.s = NULL}},
+ {KMOD_RSHIFT, SDLK_n, user_canvas_create_new, {.v = NULL}},
+ {KMOD_RSHIFT, SDLK_s, user_canvas_save, {.v = NULL}},
+ {KMOD_RSHIFT, SDLK_o, user_canvas_open, {.s = NULL}},
+ {KMOD_RSHIFT, SDLK_e, user_canvas_export_png, {.v = NULL}},
+ {KMOD_RSHIFT, SDLK_i, user_canvas_import_png, {.s = NULL}},
{0, SDLK_b, user_tool_change, {.i = 0}},
{0, SDLK_e, user_tool_change, {.i = 1}},
{0, SDLK_f, user_tool_change, {.i = 2}},
{0, SDLK_i, user_tool_change, {.i = 3}},
- {0, SDLK_n, user_canvas_create_new, {.v = NULL}},
{0, SDLK_LEFTBRACKET, user_canvas_pal_col_chng, {.i = -1}},
{0, SDLK_RIGHTBRACKET, user_canvas_pal_col_chng, {.i = 1}},
- {KMOD_LSHIFT, SDLK_r, user_testing_reload_tex, {.i = 1}},
- {0, SDLK_m, user_debug_mem_show, {.v = NULL}},
};