Register
4coder»Forums»Default bindings as a text file for 4.1.0
1 posts
Default bindings as a text file for 4.1.0
1 month, 3 weeks ago Edited by clearfeld on Dec. 30, 2019, 2:52 a.m. Reason: Initial post
I've extracted the default bindings and their associated documentation into a text file. So we can easily view the default keys currently set within 4coder itself.

default_bindings_cheatsheet.txt

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
#define CHEATSHEET_TXT_FILE "{{ path to cheatsheet}}\\default_bindings_cheatsheet.txt"

CUSTOM_COMMAND_SIG(open_default_keybindings_cheatsheet)
CUSTOM_DOC("Open cheatsheet.")
{
    change_active_panel(app);
    View_ID view = get_active_view(app, Access_ReadVisible);
    Buffer_ID buffer = view_get_buffer(app, view, Access_ReadVisible);
    if(buffer_exists(app, buffer)) {
        // TODO make the buffer read-only
        view_open_file(app, view, string_u8_litexpr(CHEATSHEET_TXT_FILE), false);
     }
}


I've also generated a key combination map that should have every possible key combination listed for a normal us layout style keyboard. For those of us that want to keep a cheat sheet with our own keybindings.

key_combination_map.txt