Skip to content
Merged

Vi mode #2174

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
74d7e45
setups settings so you can choose between different keybinding modes
koltenpearson Apr 23, 2023
92c3e93
basic insert and normal modes for code editor are working
koltenpearson Apr 24, 2023
2fc6971
history now is based off exiting insert mode instead of individual edits
koltenpearson Apr 24, 2023
f6e6bc3
visual mode kinda working
koltenpearson Apr 24, 2023
7f2dd7c
renamed "modal" to "vi"
koltenpearson Apr 24, 2023
080016e
keybindings in place for everything but bookmarks and outlines
koltenpearson Apr 24, 2023
289e3c1
mappings for basic operations are in place
koltenpearson Apr 24, 2023
b273e24
looks like some code leaked from when I was playing around with the c…
koltenpearson Apr 24, 2023
1764a97
I wasn't careful enough about the BUILD_EDITORS fences, should be fix…
koltenpearson Apr 24, 2023
99e9b1f
fixed bug where you could not type capital letters in insert mode
koltenpearson Apr 25, 2023
1f05b47
added 'x' keybinding to delete character under cursor
koltenpearson Apr 25, 2023
8d0d474
added commands for saving, running, centering screen and commenting a…
koltenpearson Apr 25, 2023
a67a6a3
fixes a general editor bug, where undoing a cut required two undos
koltenpearson Apr 25, 2023
695693e
added clever handling of multiline pastes in normal mode
koltenpearson Apr 25, 2023
aab72c4
fixes #1997 undo now lands in the location most people would expect i…
koltenpearson Apr 25, 2023
4e9a554
added commands for changing a word and changing until end of line
koltenpearson Apr 25, 2023
1b948fd
added a change command to select mode
koltenpearson Apr 26, 2023
4221c1c
added '^' command to go to first non indent character in line
koltenpearson Apr 26, 2023
e77f170
basic seek forward is working, and fixed bug with change word command
koltenpearson Apr 26, 2023
eee748e
seek command and half page motions were added
koltenpearson Apr 26, 2023
7eb585e
multiline commenting command enable, also fixed bugs where the undo
koltenpearson Apr 26, 2023
bc3d7aa
'{' and '}' (jumping to blank lines) is implemented
koltenpearson Apr 26, 2023
351cb79
implemented '%' key
koltenpearson Apr 26, 2023
c79cc1b
added < and > to change the indent
koltenpearson Apr 26, 2023
6aecc0e
the change command is now very clever. It will automatically delete the
koltenpearson Apr 26, 2023
d33409f
for #2151 add a replace all mode
koltenpearson Apr 27, 2023
cea849d
space now inserts new lines without leaving normal mode
koltenpearson Apr 27, 2023
6c88249
fixed bug where replace mode would trigger instead of goto mode
koltenpearson Apr 27, 2023
3baed93
added keys to search and replace from select mode
koltenpearson Apr 27, 2023
bebaf54
implemented n and N and got rid of the alt+jk for navigating sub menus
koltenpearson Apr 27, 2023
68900e9
switched the comment command to '-'
koltenpearson Apr 28, 2023
8031804
fixed bug where you could softlock tic80 by changing editor mode while
koltenpearson May 4, 2023
e8126d5
made it so f/F work in select mode
koltenpearson May 4, 2023
63da7a8
added `~` to switch case of letters
koltenpearson May 4, 2023
291ebee
replace now will only replace within a selection if a selection is
koltenpearson May 4, 2023
244ac61
shifted some keybindings around to (hopefully) be more intuitive
koltenpearson May 4, 2023
8b760b6
added 'y' to copy current line
koltenpearson May 4, 2023
3ffee0e
added '#' key
koltenpearson May 4, 2023
144de2f
added a '[' command to jump to a function definition
koltenpearson May 4, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/ext/history.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,4 @@ History* history_create(void* data, u32 size);
bool history_add(History* history);
void history_undo(History* history);
void history_redo(History* history);
void history_delete(History* history);
void history_delete(History* history);
2 changes: 1 addition & 1 deletion src/studio/config.c
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ static void setDefault(Config* config)
.fullscreen = false,
.integerScale = INTEGER_SCALE_DEFAULT,
#if defined(BUILD_EDITORS)
.emacsMode = false,
.keybindMode = KEYBIND_STANDARD,
.devmode = false,
#endif
},
Expand Down
Loading