From 449fd84c9013932a2f8c99f96ebadbb8b794c003 Mon Sep 17 00:00:00 2001 From: Allen Webster Date: Tue, 1 Jun 2021 08:56:56 -0700 Subject: [PATCH] [fleury] config files --- dist_files/4coder_fleury/bindings.4coder | 219 +++++++++++++++++++ dist_files/4coder_fleury/config.4coder | 99 +++++++++ dist_files/4coder_fleury/theme-fleury.4coder | 64 ++++++ 3 files changed, 382 insertions(+) create mode 100644 dist_files/4coder_fleury/bindings.4coder create mode 100644 dist_files/4coder_fleury/config.4coder create mode 100644 dist_files/4coder_fleury/theme-fleury.4coder diff --git a/dist_files/4coder_fleury/bindings.4coder b/dist_files/4coder_fleury/bindings.4coder new file mode 100644 index 00000000..39b8acbb --- /dev/null +++ b/dist_files/4coder_fleury/bindings.4coder @@ -0,0 +1,219 @@ + +keys_global = +{ + // NOTE(rjf): Meta + { "exit_4coder" , "F4", "Alt" }, + { "keyboard_macro_start_recording" , "U", "Control" }, + { "keyboard_macro_finish_recording", "U", "Control", "Shift" }, + { "keyboard_macro_replay", "U", "Alt" }, + { "change_active_panel", "Comma", "Control" }, + { "change_active_panel_backwards", "Comma", "Control", "Shift" }, + { "project_go_to_root_directory", "H", "Control" }, + { "f4_toggle_compilation_expand", "Insert" }, + { "change_to_build_panel", "Period", "Alt" }, + { "close_build_panel", "Comma", "Alt" }, + { "f4_switch_syntax_option", "Tick", "Control" }, + + // NOTE(rjf): Files + { "interactive_new", "N", "Control" }, + { "f4_setup_new_project", "N", "Control", "Shift" }, + { "interactive_open_or_new", "O", "Control" }, + { "f4_interactive_open_or_new_in_project", "O", "Alt" }, + { "f4_open_project", "O", "Control", "Shift" }, + { "interactive_kill_buffer", "K", "Control" }, + { "interactive_switch_buffer", "I", "Control" }, + { "save_all_dirty_buffers", "S", "Control", "Shift" }, + { "f4_recent_files_menu", "V", "Alt" }, + + // NOTE(rjf): Jump Lists + { "goto_next_jump", "N", "Alt" }, + { "goto_prev_jump", "N", "Alt", "Shift" }, + { "goto_first_jump", "M", "Alt", "Shift" }, + + // NOTE(rjf): Commands + { "execute_any_cli", "Z", "Alt" }, + { "execute_previous_cli", "Z", "Alt", "Shift" }, + { "command_lister", "X", "Alt" }, + + // NOTE(rjf): Project + { "build_in_build_panel", "M", "Alt" }, + { "project_command_lister", "X", "Alt", "Shift" }, + { "project_fkey_command", "F1", "Control" }, + { "project_fkey_command", "F2", "Control" }, + { "project_fkey_command", "F3", "Control" }, + { "project_fkey_command", "F4", "Control" }, + { "project_fkey_command", "F5", "Control" }, + { "project_fkey_command", "F6", "Control" }, + { "project_fkey_command", "F7", "Control" }, + { "project_fkey_command", "F8", "Control" }, + { "project_fkey_command", "F9", "Control" }, + { "project_fkey_command", "F10", "Control" }, + { "project_fkey_command", "F11", "Control" }, + { "project_fkey_command", "F12", "Control" }, + { "project_fkey_command", "F13", "Control" }, + { "project_fkey_command", "F14", "Control" }, + { "project_fkey_command", "F15", "Control" }, + { "project_fkey_command", "F16", "Control" }, + + // NOTE(rjf): Panels + { "open_panel_vsplit", "P", "Control" }, + { "open_panel_hsplit", "Minus", "Control" }, + { "close_panel", "P", "Control", "Shift" }, + { "f4_search_for_definition__project_wide", "J", "Control" }, + { "f4_search_for_definition__current_file", "J", "Control", "Shift" }, + { "jump_to_last_point", "J", "Alt" }, + +}; + +keys_file = +{ + // NOTE(rjf): None => Characters + // Ctrl => Tokens + // Alt => Alphanumeric/Camel + + // NOTE(rjf): Backspace/Delete + { "delete_char", "Delete" }, + { "f4_delete_token_boundary", "Delete", "Control" }, + { "f4_delete_alpha_numeric_or_camel_boundary", "Delete", "Alt" }, + { "backspace_char", "Backspace" }, + { "f4_backspace_token_boundary", "Backspace", "Control" }, + { "f4_backspace_alpha_numeric_or_camel_boundary", "Backspace", "Alt" }, + + // NOTE(rjf): Left/Right Arrow Keys + { "f4_move_left", "Left" }, + { "f4_move_left_token_boundary", "Left", "Control" }, + { "move_left_alpha_numeric_or_camel_boundary", "Left", "Alt" }, + { "f4_move_right", "Right" }, + { "f4_move_right_token_boundary", "Right", "Control" }, + { "move_right_alpha_numeric_or_camel_boundary", "Right", "Alt" }, + + // NOTE(rjf): Up/Down Arrow Keys + { "move_up", "Up" }, + { "move_down", "Down" }, + { "move_up_to_blank_line_end", "Up", "Control" }, + { "move_down_to_blank_line_end", "Down", "Control" }, + { "move_line_up", "Up", "Alt" }, + { "move_line_down", "Down", "Alt" }, + { "f4_move_to_prev_divider_comment", "Up", "Control", "Shift" }, + { "f4_move_to_next_divider_comment", "Down", "Control", "Shift" }, + { "f4_move_up_token_occurrence", "Up", "Control", "Alt" }, + { "f4_move_down_token_occurrence", "Down", "Control", "Alt" }, + + // NOTE(rjf): Alternative Movement Keys + { "seek_end_of_line", "End" }, + { "f4_home_first_non_whitespace", "Home" }, + { "page_up", "PageUp" }, + { "page_down", "PageDown" }, + { "goto_beginning_of_file", "PageUp", "Control" }, + { "goto_end_of_file", "PageDown", "Control" }, + + // NOTE(rjf): Mark + { "set_mark", "Space", "Control" }, + { "cursor_mark_swap", "M", "Control" }, + + // NOTE(rjf): Search + { "f4_search", "F", "Control" }, + { "f4_reverse_search", "R", "Control" }, + { "list_all_locations", "F", "Control", "Shift" }, + { "list_all_substring_locations_case_insensitive", "F", "Alt" }, + { "goto_line", "G", "Control" }, + { "list_all_locations_of_selection", "G", "Control", "Shift" }, + { "search_identifier", "T", "Control" }, + { "list_all_locations_of_identifier", "T", "Control", "Shift" }, + + // NOTE(rjf): Replace + { "replace_in_range", "A", "Control" }, + { "query_replace", "Q", "Control" }, + { "query_replace_identifier", "Q", "Control", "Shift" }, + { "query_replace_selection", "Q", "Alt" }, + + // NOTE(rjf): Clipboard + { "copy", "C", "Control" }, + { "paste_and_indent", "V", "Control" }, + { "paste_next_and_indent", "V", "Control", "Shift" }, + { "cut", "X", "Control" }, + + // NOTE(rjf): Lego + { "f4_lego_buffer_place", "F1", }, + { "f4_lego_buffer_place", "F2", }, + { "f4_lego_buffer_place", "F3", }, + { "f4_lego_buffer_place", "F4", }, + + // NOTE(rjf): Deletion + { "delete_range", "D", "Control" }, + { "delete_line", "D", "Control", "Shift" }, + + // NOTE(rjf): Insertion + { "duplicate_line", "L", "Control" }, + + // NOTE(rjf): View + { "center_view", "E", "Control" }, + { "left_adjust_view", "E", "Control", "Shift" }, + + // NOTE(rjf): File + { "kill_buffer", "K", "Control", "Shift" }, + { "reopen", "O", "Alt", "Shift" }, + { "save", "S", "Control" }, + { "save_all_dirty_buffers", "S", "Control", "Shift" }, + { "redo", "Y", "Control" }, + { "undo", "Z", "Control" }, + { "view_buffer_other_panel", "1", "Control" }, + + // NOTE(rjf): Meta + { "swap_panels", "2", "Control" }, + { "if_read_only_goto_position", "Return" }, + { "if_read_only_goto_position_same_panel", "Return", "Shift" }, + { "view_jump_list_with_lister", "Period", "Control", "Shift" }, + + // NOTE(rjf): Code Peek + { "f4_code_peek", "Tick", "Alt" }, + { "f4_code_peek_yank", "Tab", "Control" }, + { "f4_code_peek_clear", "Shift", "Alt" }, + + // NOTE(rjf): Go To Def + { "f4_go_to_definition", "Return", "Control" }, + { "f4_go_to_definition_same_panel", "Return", "Control", "Shift" }, + + // NOTE(rjf): Helpers + { "f4_write_zero_struct", "0", "Control" }, + { "f4_toggle_enclosure_side", "Semicolon", "Alt" }, +}; + +keys_code = +{ + { "f4_comment_selection", "Semicolon", "Control" }, + { "f4_uncomment_selection", "Semicolon", "Control", "Shift", }, + { "f4_autocomplete_or_indent", "Tab" }, + { "f4_unindent", "Tab", "Shift" }, + { "word_complete_drop_down", "Tab", "Shift", "Control" }, + { "write_block", "R", "Alt" }, + { "write_todo", "T", "Alt" }, + { "write_note", "Y", "Alt" }, + { "list_all_locations_of_type_definition", "D", "Alt" }, + { "list_all_locations_of_type_definition_of_identifier", "T", "Alt", "Shift" }, + { "open_long_braces", "LeftBracket", "Control" }, + { "open_long_braces_semicolon", "LeftBracket", "Control", "Shift" }, + { "open_long_braces_break", "RightBracket", "Control", "Shift" }, + { "select_surrounding_scope", "LeftBracket", "Alt" }, + { "select_surrounding_scope_maximal", "LeftBracket", "Alt", "Shift" }, + { "select_prev_scope_absolute", "RightBracket", "Alt" }, + { "select_prev_top_most_scope", "RightBracket", "Alt", "Shift" }, + { "select_next_scope_absolute", "Quote", "Alt" }, + { "select_next_scope_after_current", "Quote", "Alt", "Shift" }, + { "place_in_scope", "ForwardSlash", "Alt" }, + { "delete_current_scope", "Minus", "Alt" }, + { "if0_off", "I", "Alt" }, + { "open_file_in_quotes", "1", "Alt" }, + { "open_matching_file_cpp", "2", "Alt" }, + + { "f4_lego_store_range", "F5", "Alt" }, + { "f4_lego_store_range", "F6", "Alt" }, + { "f4_lego_store_range", "F7", "Alt" }, + { "f4_lego_store_range", "F8", "Alt" }, + + { "f4_lego_store_token", "F5" }, + { "f4_lego_store_token", "F6" }, + { "f4_lego_store_token", "F7" }, + { "f4_lego_store_token", "F8" }, + +}; \ No newline at end of file diff --git a/dist_files/4coder_fleury/config.4coder b/dist_files/4coder_fleury/config.4coder new file mode 100644 index 00000000..be2ffb93 --- /dev/null +++ b/dist_files/4coder_fleury/config.4coder @@ -0,0 +1,99 @@ +// Command Mapping +// "" - Leave the bindings unaltered - use this when writing your own customization! +// "choose" - Ask 4coder to choose based on platform. +// "default" - Use the default keybindings 4coder has always had. +// "mac-default" - Use keybindings similar to those found in other Mac applications. +mapping = ""; + +// MODE +// "4coder" - The default 4coder mode that has been around since the beginning of time (2015) +// "notepad-like" - Single "thin" cursor and highlight ranges like in notepad, sublime, notepad++, etc +mode = "4coder"; +bind_by_physical_key = false; + +// UI +use_scroll_bars = false; +use_file_bars = true; +use_error_highlight = true; +use_jump_highlight = true; +use_scope_highlight = true; +use_paren_helper = true; +use_comment_keywords = true; +lister_whole_word_backspace_when_modified = false; +show_line_number_margins = false; +enable_output_wrapping = false; + +enable_undo_fade_out = false; + +// cursor_roundess is a value [0,50] setting the radius of +// the cursor and mark's roundness as a percentage of their width +// (At 50 the left and right corners will be so round they form a semi-circle, +// hence 50 is the max) +cursor_roundness = 10; + +// mark_thickness is a pixel count value setting the +// thickness of the mark wire box in original mode +mark_thickness = 2; + +// lister_roundess is a value [0,50] setting the radius of +// the lister items' roundness as a percentage of their height +lister_roundness = 20; + +// Code Wrapping +treat_as_code = ".cpp.c.hpp.h.cc.cs.java.rs.glsl.m.mm.ds.md.4coder.jai.vert.frag"; +enable_virtual_whitespace = true; +virtual_whitespace_regular_indent = 1; +enable_code_wrapping = true; + +// This only applies to code files in code-wrapping mode. +// Plain text and code files without virtual-whitespace will not be effected. +automatically_indent_text_on_save = true; + +// When set to true, all unsaved changes will be saved on a build. +automatically_save_changes_on_build = true; + +// Load project on startup +automatically_load_project = true; + +// Indentation +indent_with_tabs = false; +indent_width = 4; +default_tab_width = 4; + +// Theme +default_theme_name = "theme-fleury"; +highlight_line_at_cursor = true; + +// Font +default_font_name = "liberation-mono.ttf"; +default_font_size = 14; +default_font_hinting = true; + +// aa modes: +// 8bit - mono-chrome 0-255 opacity channel per pixel +// 1bit - mono-chrome 0/1 opacity channel per pixel +default_font_aa_mode = "8bit"; + +// User +user_name = "rjf"; + +// Keyboard AltGr setting +lalt_lctrl_is_altgr = false; + +// Project setup configuration +default_compiler_bat = "cl"; +default_flags_bat = "-FC -GR- -EHa- -nologo -Zi"; +default_compiler_sh = "g++"; +default_flags_sh = "-g"; + +// NOTE(rjf): Fleury 4coder Disabling Options +// f4_disable_brace_highlight = true; +// f4_disable_close_brace_annotation = true; +// f4_disable_brace_lines = true; +// f4_disable_progress_bar = true; +// f4_disable_divider_comments = true; +// f4_disable_error_annotations = true; +// f4_disable_calc_comments = true; +// f4_poscontext_draw_at_bottom_of_buffer = true; +// f4_disable_poscontext = true; +// f4_disable_cursor_token_occurance = true; diff --git a/dist_files/4coder_fleury/theme-fleury.4coder b/dist_files/4coder_fleury/theme-fleury.4coder new file mode 100644 index 00000000..5ce64099 --- /dev/null +++ b/dist_files/4coder_fleury/theme-fleury.4coder @@ -0,0 +1,64 @@ +defcolor_bar = 0xFF000000; +defcolor_base = 0xFFfcaa05; +defcolor_pop1 = 0xffde8150; +defcolor_pop2 = 0xFFFF0000; +defcolor_back = 0xFF020202; +defcolor_margin = 0xFF222425; +defcolor_margin_hover = 0xff63523d; +defcolor_margin_active = 0xff63523d; +defcolor_list_item = { 0xFF222425, defcolor_back}; +defcolor_list_item_hover = { 0xff362e25, defcolor_margin}; +defcolor_list_item_active = { 0xff63523d, defcolor_margin}; +defcolor_cursor = { 0xFF00EE00, 0xffe0741b, 0xff1be094, 0xffba60c4 }; +defcolor_at_cursor = 0xFF0C0C0C; +defcolor_highlight_cursor_line = 0xFF1E1E1E; +defcolor_highlight = 0xFF303040; +defcolor_at_highlight = 0xFFFF44DD; +defcolor_mark = 0xFF494949; +defcolor_text_default = 0xffb99468; +defcolor_comment = 0xff666666; +defcolor_comment_pop = { 0xff2ab34f, 0xFFdb2828 }; +defcolor_keyword = 0xfff0c674; +defcolor_str_constant = 0xffffa900; +defcolor_char_constant = 0xffffa900; +defcolor_int_constant = 0xffffa900; +defcolor_float_constant = 0xffffa900; +defcolor_bool_constant = 0xffffa900; +defcolor_preproc = 0xFFdc7575; +defcolor_include = 0xffffa900; +defcolor_special_character = 0xFFFF0000; +defcolor_ghost_character = 0xFF4E5E46; +defcolor_highlight_junk = 0xFF3A0000; +defcolor_highlight_white = 0xFF003A3A; +defcolor_paste = 0xFFDDEE00; +defcolor_undo = 0xFF00DDEE; +defcolor_back_cycle = { 0xFF020202, 0xFF020202, 0xFF020202, 0xFF020202, 0xFF020202, 0xFF020202, 0xFF020202, 0xFF100202, 0xFF300202, 0xFF500202, 0xFF700202}; +defcolor_text_cycle = { 0xFFA00000, 0xFF00A000, 0xFF0030B0, 0xFFA0A000 }; +defcolor_line_numbers_back = 0xFF101010; +defcolor_line_numbers_text = 0xFF404040; + +fleury_color_syntax_crap = 0xff5c4d3c; +fleury_color_operators = 0xFFbd2d2d; +fleury_color_inactive_pane_overlay = 0x44000000; +fleury_color_inactive_pane_background = 0xff000000; +fleury_color_file_progress_bar = 0x60634323; +fleury_color_brace_highlight = { 0xff8ffff2 }; +fleury_color_brace_line = { 0x809ba290 }; +fleury_color_brace_annotation = { 0x809ba290 }; +fleury_color_index_product_type = 0xFFedb211; +fleury_color_index_sum_type = 0xFFa7eb13; +fleury_color_index_function = 0xFFde451f; +fleury_color_index_macro = 0xFF2895c7; +fleury_color_index_constant = 0xff6eb535; +fleury_color_index_comment_tag = 0xffffae00; +fleury_color_index_decl = 0xffc9598a; +fleury_color_cursor_macro = 0xffde2368; +fleury_color_cursor_power_mode = 0xffefaf2f; +fleury_color_cursor_inactive = 0xFF880000; +fleury_color_plot_cycle = { 0xff03d3fc, 0xff22b80b, 0xfff0bb0c, 0xfff0500c }; +fleury_color_token_highlight = 0x88f2d357; +fleury_color_token_minor_highlight = 0x44d19045; +fleury_color_error_annotation = 0xffff0000; +fleury_color_lego_grab = 0xffefaf6f; +fleury_color_lego_splat = 0xffefaaef; +fleury_color_comment_user_name = 0xffffdd23;