From 4df05414f2720d9e3528ec5cd3d7cac53a3a89ef Mon Sep 17 00:00:00 2001 From: Allen Webster Date: Tue, 11 Jul 2017 17:53:27 -0400 Subject: [PATCH] cleaning up messages string a little --- 4ed.cpp | 262 ++++++++++++++++++++++++++++---------------------------- 1 file changed, 132 insertions(+), 130 deletions(-) diff --git a/4ed.cpp b/4ed.cpp index 628404ec..123413d3 100644 --- a/4ed.cpp +++ b/4ed.cpp @@ -9,6 +9,137 @@ // TOP +// Messages +global_const char messages[] = +"----------------------------------------------------------------\n" +"Welcome to " VERSION "\n" +"If you're new to 4coder there are some tutorials at http://4coder.net/tutorials.html\n" +"\n" +"Newest features:\n" +"-Color schemes are now loaded in theme files from the \"themes\" folder\n" +"-After loading a project sets the hot directory to the project directory\n" +"-The flag -L enables a logging system that will collect information in case more information is needed while debugging a problem\n" +"-All command line flags after the special flag --custom are now passed to the custom API start hook\n" +"-The start hook now gets the list of file names that were specified on the command line\n" +" All of the files specified on the command line are loaded before the start hook runs\n" +"-It is now possible to set the hot directory from the custom API\n" +"-On windows the buildsuper scripts are improved to look for vcvarsall.bat in lots of common locations\n" +"\n" +"New in alpha 4.0.20:\n" +"-Option for LAlt + LCtrl = AltGr on Windows is now in config.4coder\n" +"-The 4cpp lexer now has a customizable keyword table, *experimental* expansion of language support to:\n" +" Rust, C#, Java\n" +" Arbitrary keyword customization available in custom code (super users)\n" +"\n" +"New in alpha 4.0.19:\n" +"-Lexer now handles string literal prefixes and is more optimized\n" +"-Fixes for lingering unicode bugs\n" +"-Power users have an experimental new jump to error that positions through edits (coming to all tiers soon)\n" +"\n" +"New in alpha 4.0.18:\n" +"-Support for rendering unicode characters\n" +"- isearch alpha-numeric word under cursor\n" +"- query replace alpha-numeric word under cursor\n" +"- toggle file bar\n" +"\n" +"New in alpha 4.0.17:\n" +"-New support for extended ascii input.\n" +"-Extended ascii encoded in buffers as utf8.\n" +"-The custom layer now has a 'markers' API for tracking buffer positions across changes.\n" +"\n" +"New in alpha 4.0.16:\n" +"- If the current file is a C++ code file, this opens the matching header.\n"" If the current file is a C++ header, this opens the matching code file.\n" +"-Option to automatically save changes on build in the config file.\n" +" This works for builds triggered by .\n" +"-Option in project files to have certain fkey commands save changes.\n" +"\n" +"New in alpha 4.0.15:\n" +"- find all functions in the current buffer and list them in a jump buffer\n" +"-option to set user name in config.4coder\n" +" The user name is used in and comment writing commands\n" +"\n" +"New in alpha 4.0.14:\n" +"-Option to have wrap widths automatically adjust based on average view width\n" +"-The 'config.4coder' file can now be placed with the 4ed executable file\n" +"-New options in 'config.4coder' to specify the font and color theme\n" +"-New built in project configuration system\n" +"-New on-save hooks allows custom behavior in the custom layer whenever a file is saved\n" +"-When using code wrapping, any saved file is automatically indented in the text format, this option can be turned off in config.4coder\n" +"\n" +"New in alpha 4.0.12 and 4.0.13:\n" +"-Text files wrap lines at whitespace when possible\n" +"-New code wrapping feature is on by default\n" +"-Introduced a 'config.4coder' for setting several wrapping options:\n" +" enable_code_wrapping: set to false if you want the text like behavior\n" +" default_wrap_width: the wrap width to set in new files\n" +"- decrease the current buffer's wrap width\n" +"- increase the current buffer's wrap width\n" +"-In the customization layer new settings for the buffer are exposed dealing with wrapping\n" +"-In the customization layer there is a call for setting what keys the GUI should use\n" +"\n" +"New in alpha 4.0.11:\n" +"-The commands for going to next error, previous error, etc now work\n" +" on any buffer with jump locations including *search*\n" +"-4coder now supports proper, borderless, fullscreen with the flag -F\n" +" and fullscreen can be toggled with .\n" +" (This sometimes causes artifacts on the Windows task bar)\n" +"- to exit\n" +"-hook on exit for the customization system\n" +"-tokens now exposed in customization system\n" +"-mouse release events in customization system\n" +"\n" +"New in alpha 4.0.10:\n" +"- list all locations of a string across all open buffers\n" +"-Build now finds build.sh and Makefile on Linux\n" +"- goes to the next error if the *compilation* buffer is open\n" +"- goes to the previous error\n" +"- goes to the first error\n" +"- switch to the compilation buffer\n" +"- close the panel viewing the compilation buffer\n" +"-New documentation for the 4coder string library included in 4coder_API.html\n" +"-Low level allocation calls available in custom API\n" +"-Each panel can change font independently.\n" +" Per-buffer fonts are exposed in the custom API.\n" +"\n" +"New in alpha 4.0.9:\n" +"-A scratch buffer is now opened with 4coder automatically\n" +"-A new mouse suppression mode toggled by \n" +"-Hinting is disabled by default, a -h flag on the command line enables it\n" +"-New 4coder_API.html documentation file provided for the custom layer API\n" +"-Experimental new work-flow for building and jumping to errors\n" +" This system is only for MSVC in the 'power' version as of 4.0.9\n" +"\n" +"New in alpha 4.0.8:\n" +"-Eliminated the parameter stack\n" +"\n" +"New in alpha 4.0.7:\n" +"-Right click sets the mark\n" +"-Clicks now have key codes so they can have events bound in customizations\n" +"- opens a debug view, see more in README.txt\n" +"\n" +"New in alpha 4.0.6:\n" +"-Tied the view scrolling and the list arrow navigation together\n" +"-Scroll bars are now toggleable with for show and for hide\n" +"\n" +"New in alpha 4.0.5:\n" +"-New indent rule\n" +"-app->buffer_compute_cursor in the customization API\n" +"-f keys are available in the customization system now\n" +"\n" +"New in alpha 4.0.3 and 4.0.4:\n" +"-Scroll bar on files and file lists\n" +"-Arrow navigation in lists\n" +"-A new minimal theme editor\n" +"\n" +"New in alpha 4.0.2:\n" +"-The file count limit is over 8 million now\n" +"-File equality is handled better so renamings (such as 'subst') are safe now\n" +"-This buffer will report events including errors that happen in 4coder\n" +"-Super users can post their own messages here with app->print_message\n" +"- centers view on cursor; cmdid_center_view in customization API\n" +"-Set font size on command line with -f N, N = 16 by default\n\n"; + + // App Structs #define DEFAULT_DISPLAY_WIDTH 672 @@ -1966,136 +2097,7 @@ App_Step_Sig(app_step){ // NOTE(allen): initialize message if (input->first_step){ - String welcome = - make_lit_string("----------------------------------------------------------------\n" - "Welcome to " VERSION "\n" - "If you're new to 4coder there are some tutorials at http://4coder.net/tutorials.html\n" - "\n" - "Newest features:\n" - "-Color schemes are now loaded in theme files from the \"themes\" folder\n" - "-After loading a project sets the hot directory to the project directory\n" - "-The flag -L enables a logging system that will collect information in case more information is needed while debugging a problem\n" - "-All command line flags after the special flag --custom are now passed to the custom API start hook\n" - "-The start hook now gets the list of file names that were specified on the command line\n" - " All of the files specified on the command line are loaded before the start hook runs\n" - "-It is now possible to set the hot directory from the custom API\n" - "-On windows the buildsuper scripts are improved to look for vcvarsall.bat in lots of common locations\n" - "\n" - "New in alpha 4.0.20:\n" - "-Option for LAlt + LCtrl = AltGr on Windows is now in config.4coder\n" - "-The 4cpp lexer now has a customizable keyword table, *experimental* expansion of language support to:\n" - " Rust, C#, Java\n" - " Arbitrary keyword customization available in custom code (super users)\n" - "\n" - "New in alpha 4.0.19:\n" - "-Lexer now handles string literal prefixes and is more optimized\n" - "-Fixes for lingering unicode bugs\n" - "-Power users have an experimental new jump to error that positions through edits (coming to all tiers soon)\n" - "\n" - "New in alpha 4.0.18:\n" - "-Support for rendering unicode characters\n" - "- isearch alpha-numeric word under cursor\n" - "- query replace alpha-numeric word under cursor\n" - "- toggle file bar\n" - "\n" - "New in alpha 4.0.17:\n" - "-New support for extended ascii input.\n" - "-Extended ascii encoded in buffers as utf8.\n" - "-The custom layer now has a 'markers' API for tracking buffer positions across changes.\n" - "\n" - "New in alpha 4.0.16:\n" - "- If the current file is a C++ code file, this opens the matching header.\n"" If the current file is a C++ header, this opens the matching code file.\n" - "-Option to automatically save changes on build in the config file.\n" - " This works for builds triggered by .\n" - "-Option in project files to have certain fkey commands save changes.\n" - "\n" - "New in alpha 4.0.15:\n" - "- find all functions in the current buffer and list them in a jump buffer\n" - "-option to set user name in config.4coder\n" - " The user name is used in and comment writing commands\n" - "\n" - "New in alpha 4.0.14:\n" - "-Option to have wrap widths automatically adjust based on average view width\n" - "-The 'config.4coder' file can now be placed with the 4ed executable file\n" - "-New options in 'config.4coder' to specify the font and color theme\n" - "-New built in project configuration system\n" - "-New on-save hooks allows custom behavior in the custom layer whenever a file is saved\n" - "-When using code wrapping, any saved file is automatically indented in the text format, this option can be turned off in config.4coder\n" - "\n" - "New in alpha 4.0.12 and 4.0.13:\n" - "-Text files wrap lines at whitespace when possible\n" - "-New code wrapping feature is on by default\n" - "-Introduced a 'config.4coder' for setting several wrapping options:\n" - " enable_code_wrapping: set to false if you want the text like behavior\n" - " default_wrap_width: the wrap width to set in new files\n" - "- decrease the current buffer's wrap width\n" - "- increase the current buffer's wrap width\n" - "-In the customization layer new settings for the buffer are exposed dealing with wrapping\n" - "-In the customization layer there is a call for setting what keys the GUI should use\n" - "\n" - "New in alpha 4.0.11:\n" - "-The commands for going to next error, previous error, etc now work\n" - " on any buffer with jump locations including *search*\n" - "-4coder now supports proper, borderless, fullscreen with the flag -F\n" - " and fullscreen can be toggled with .\n" - " (This sometimes causes artifacts on the Windows task bar)\n" - "- to exit\n" - "-hook on exit for the customization system\n" - "-tokens now exposed in customization system\n" - "-mouse release events in customization system\n" - "\n" - "New in alpha 4.0.10:\n" - "- list all locations of a string across all open buffers\n" - "-Build now finds build.sh and Makefile on Linux\n" - "- goes to the next error if the *compilation* buffer is open\n" - "- goes to the previous error\n" - "- goes to the first error\n" - "- switch to the compilation buffer\n" - "- close the panel viewing the compilation buffer\n" - "-New documentation for the 4coder string library included in 4coder_API.html\n" - "-Low level allocation calls available in custom API\n" - "-Each panel can change font independently.\n" - " Per-buffer fonts are exposed in the custom API.\n" - "\n" - "New in alpha 4.0.9:\n" - "-A scratch buffer is now opened with 4coder automatically\n" - "-A new mouse suppression mode toggled by \n" - "-Hinting is disabled by default, a -h flag on the command line enables it\n" - "-New 4coder_API.html documentation file provided for the custom layer API\n" - "-Experimental new work-flow for building and jumping to errors\n" - " This system is only for MSVC in the 'power' version as of 4.0.9\n" - "\n" - "New in alpha 4.0.8:\n" - "-Eliminated the parameter stack\n" - "\n" - "New in alpha 4.0.7:\n" - "-Right click sets the mark\n" - "-Clicks now have key codes so they can have events bound in customizations\n" - "- opens a debug view, see more in README.txt\n" - "\n" - "New in alpha 4.0.6:\n" - "-Tied the view scrolling and the list arrow navigation together\n" - "-Scroll bars are now toggleable with for show and for hide\n" - "\n" - "New in alpha 4.0.5:\n" - "-New indent rule\n" - "-app->buffer_compute_cursor in the customization API\n" - "-f keys are available in the customization system now\n" - "\n" - "New in alpha 4.0.3 and 4.0.4:\n" - "-Scroll bar on files and file lists\n" - "-Arrow navigation in lists\n" - "-A new minimal theme editor\n" - "\n" - "New in alpha 4.0.2:\n" - "-The file count limit is over 8 million now\n" - "-File equality is handled better so renamings (such as 'subst') are safe now\n" - "-This buffer will report events including errors that happen in 4coder\n" - "-Super users can post their own messages here with app->print_message\n" - "- centers view on cursor; cmdid_center_view in customization API\n" - "-Set font size on command line with -f N, N = 16 by default\n\n" - ); - + String welcome = make_lit_string(messages); do_feedback_message(system, models, welcome, true); }