From 5f0063997009b965dd3b28bfaf93f9a73c466b00 Mon Sep 17 00:00:00 2001 From: Allen Webster Date: Wed, 28 Dec 2016 00:05:56 -0500 Subject: [PATCH] fix the site build, add new tutorial link --- 4coder_default_bindings.cpp | 3 ++- site/build.bat | 4 +--- site/build.sh | 2 -- site/source_material/tutorials.txt | 4 ++++ 4 files changed, 7 insertions(+), 6 deletions(-) diff --git a/4coder_default_bindings.cpp b/4coder_default_bindings.cpp index eed86a88..26ea1816 100644 --- a/4coder_default_bindings.cpp +++ b/4coder_default_bindings.cpp @@ -169,7 +169,7 @@ HOOK_SIG(my_view_adjust){ int32_t new_min_base_width = (int32_t)(new_wrap_width * .77f); if (automatically_adjust_wrapping){ - adjust_all_buffer_wrap_widths(app, new_wrap_width, new_min_base_width); + adjust_all_buffer_wrap_widths(app, new_wrap_width, new_min_base_width); } // no meaning for return @@ -383,6 +383,7 @@ default_keys(Bind_Helper *context){ bind(context, 's', MDFR_ALT, show_scrollbar); bind(context, 'w', MDFR_ALT, hide_scrollbar); + // TODO(allen): This is apparently not working on Linux. Need to try it on windows still. bind(context, key_f2, MDFR_CTRL, toggle_mouse); bind(context, key_page_up, MDFR_CTRL, toggle_fullscreen); bind(context, 'E', MDFR_ALT, exit_4coder); diff --git a/site/build.bat b/site/build.bat index 1c79780f..22733f9b 100644 --- a/site/build.bat +++ b/site/build.bat @@ -7,14 +7,12 @@ SET OPTS=%OPTS% /GR- /EHa- /nologo /FC SET FirstError=0 -pushd ..\..\build +pushd ..\build cl %OPTS% ..\code\build.cpp /Zi /Febuild /DSITE_BUILD if %ERRORLEVEL% neq 0 (set FirstError=1) popd -pushd .. ..\build\build if %ERRORLEVEL% neq 0 (set FirstError=1) -popd call "ctime" -end 4ed_site.ctm %FirstError% \ No newline at end of file diff --git a/site/build.sh b/site/build.sh index a975cf00..93328e8c 100755 --- a/site/build.sh +++ b/site/build.sh @@ -3,8 +3,6 @@ WARNINGS="-Wno-write-strings" FLAGS="-D_GNU_SOURCE -fPIC -fpermissive -DSITE_BUILD" -pushd .. BASEDIR="$PWD" g++ $WARNINGS $FLAGS $BASEDIR/build.cpp -g -o ../build/build ../build/build -popd diff --git a/site/source_material/tutorials.txt b/site/source_material/tutorials.txt index a11f34ba..8ae5e474 100644 --- a/site/source_material/tutorials.txt +++ b/site/source_material/tutorials.txt @@ -11,6 +11,10 @@ Setting up and navigating your project with 4coder: \VIDEO{youtube:https://www.youtube.com/embed/glPEpaT6GH0} +Extending your project with a project file: + +\VIDEO{youtube:https://www.youtube.com/embed/iZLtS3IoatE} + More tutorials coming soon.