PolarJunction / 4files

4coder customizations, including some of other ppls customization

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

4files

4coder Nord

Here are my customizations to 4coder. These also include customizations from other ppl. Feel free to take a look at the previews and pick out what ever you like into your own customization layer.

Features (in order of significance):

Snippet Autocompletion when writing

snippet_autocompletion

Functions/Arrays color highlighting / (Rust) macro colord highlighting

function_highlight

Smooth cursor from ryan_fleury, added Heart beat animation

smooth_cursor

Customization to CodePeek from ryan_fleury

  • Changed rendering, now shows the file_name and which buffer is shown
  • Excludes the file you are in currently
  • Jump Backwards in history code_peek

Indenting of '(' reworked to not be ugly (for rust) anymore

paren_indenting

".iter()" function with '.' are indented now (for rust)

dot_indenting

Rust snippets

rust_snippets

Macro recording highlighting

macro_recording

Minor Features:

  • Nord color theme see above
  • "HACK:"" is highlighted now
  • Faster scroll speed like in Alpha

How my setup works (Windows):

  1. Clone this repository to your 4coder/custom folder and name it skytrias in my case
  2. Replace some existing 4coder_* files with my changed versions of them in the right places
  • you might have to fix a few things if they don't exist, 4coder_cpp_lex_gen but needs to run lex.bat*
  1. Run a x64 terminal where cl exists (Build tools from VS2019)
  2. I.e. call the build .bat file from the root 4coder/ like custom\skytrias\build.bat
    • (if your folder has a different name, rename it or contents of the .bat files)
  3. In 4coder/custom/4coder_default_hooks.cpp disable the hooks that are overwritten in your main file -> see skytrias.cpp in my case
  4. You will probably have to fix a few changed functions parameters because they may have been extended.
  5. 4ed.exe has to be closed when trying to run any .bat file, otherwhise 4ed can't rebuild the .dll file

.Bat files

  • build.bat: Rebuilds 4coder/custom_4ed.dll in debug mode
  • release.bat: Rebuilds 4coder/custom_4ed.dll in release mode for best performance
  • lex.bat: Rebuilds the lexer into the 4coder\custom\generated folder, calls one_time.exe, and rebuilds everything
    • The lexer speficies the words that will be highlighted in 4coder

I suggest

Looking through each of the features, pick up what you think is cool or might be helpful to you. Extend the features you want, or send an issue / pull request.

About

4coder customizations, including some of other ppls customization


Languages

Language:C++ 98.7%Language:PHP 0.9%Language:Batchfile 0.3%