diff options
Diffstat (limited to '.schreiber')
| -rw-r--r-- | .schreiber | 96 |
1 files changed, 96 insertions, 0 deletions
diff --git a/.schreiber b/.schreiber new file mode 100644 index 0000000..e4a5c90 --- /dev/null +++ b/.schreiber @@ -0,0 +1,96 @@ +# The project file of Schreiber. Schreiber reads it again each time that it changes. +# A line that starts with # is a comment. Take the # away from an example to use it. +# +# A section is for each system. A section with systems after its name is for these systems only, with a comma between +# two: the systems are windows, macos and linux. Each system takes the lines of the sections with no systems and of its +# own sections, in the order of this file. So one file can have the commands of each system: +# [build] each system +# [build:windows] Windows only +# [build:macos,linux] macOS and Linux only +# This works for each section: [run:windows], [folders:linux], [odin:macos] and the others. + +# More folders of the project, next to the folder of this file, one in each line. A path is relative to the folder of this file, +# and a ~ at its start is the home folder. The side bar shows the folders in this order, with the folder of this file first, or +# at the place of a line with only a period. Move Folder Up and Move Folder Down of the menu of a folder in the side bar change +# the order of these lines. +[folders] +# ../shared +# ~/Odin + +# The build actions, one in each line: <name>: <command>. A folder in brackets in front of the command is the folder +# that the command runs in. With one action, the hammer button at the top right of the window runs it. With more +# than one, the list next to the hammer selects one, and the hammer and F7 run the selected one. +# Each action is also in the command palette. +[build] +# test: [tests] run_tests.bat +debug: odin build . -debug -out:wav.exe +release: odin build . -o:speed -out:wav.exe + +# The build actions of some systems only, next to the actions above. +# [build:windows] +# package: build.bat -ship +# [build:macos,linux] +# package: ./build.sh -ship + +# The commands that start the program, in the same form. With one command, the play button at the top right runs it. +# With more than one, the list next to the button selects one, and the button and Control+F5 run the selected one. +[run] +# run: build\program.exe +# run with a file: build\program.exe data\example.txt + +# The commands that start the program on some systems only. +# [run:macos,linux] +# run: ./build/program + +# The folders and the files that the side bar, Goto Anything and find in files do not show, the folders that Schreiber +# shows but does not parse (no Odin packages, no check of the compiler and no symbols), and the folders and the files that +# the side bar shows but Goto Anything and find in files skip. A name with a / is a path in the project. +[index] +# folder_exclude_patterns: build, .git +# file_exclude_patterns: *.obj, *.pdb +# parse_exclude_patterns: vendor, lib/old +# search_exclude_patterns: .claude, *.min.js + +# The Odin code of the project: the Odin folder of the project, the collections, the folders that the compiler +# checks, and more arguments for the check. With no root and no collection here, Schreiber reads ols.json. A +# collection that neither names comes from the imports: import "third_party:box3d" and the folder third_party/box3d +# of the project give the collection third_party. A collection outside of the project needs a line here. +[odin] +# collection: lib = lib +root: D:/Progs/odin +check: . +check_flags: -vet + +# The C and C++ code of the project: the compile_commands.json of the build, which gives the include folders and the defines +# of each file. With no such line, Schreiber takes the newest one in this folder or in a folder in it. A define line gives a +# macro to the #if of each file, for a macro that the build does not give. +[cpp] +# compile_commands: build/compile_commands.json +# define: FEATURE_LEVEL=2 + +# The game of an Unreal Engine project: the path of its .uproject, for a project folder that is the folder of the engine with +# the game in it. With no such line, Schreiber takes the .uproject in this folder or in a folder in it, else the only game of the +# folders of Default.uprojectdirs of the engine. +[unreal] +# MyGame/MyGame.uproject + +# Keys that put a text in place of each selection, one macro in each line: <keys> "<text>". The keys have the form of +# the keymap file (Control Alt /) or of Sublime Text (ctrl+alt+/), and win over a binding of the keymap. The text is +# a string as in Odin: \n is a new line, \t a tab, \" a quote. +[macros] +# ctrl+alt+/ "// TODO: " +# Control Alt L "log.infof(\"[app] %v\", value)" + +# The banner lines of the comments, one style in each line: <prefix> <fill character> <width>. A line that starts with the +# prefix and a space, after its indentation, is a banner line: while you write its title, the fill after the title gets longer +# or shorter, so the line ends at the column of the width. A tab counts as the tab size. An edit in the fill is a plain edit. +# A line that starts with # is a comment, so a prefix that starts with # or \ has a \ in front of it. +[banners] +# //--- - 100 +# \#--- = 80 + +# The colors of the comments, one in each line: <regular expression> = <color>. Each match of the expression in a comment has +# the color, and of two matches at one place, the line further down wins. \b is the edge of a word. +[highlight] +# \bTODO(\([^)]*\))? = #ffe792 +# \bNOTE(\([^)]*\))? = #8fd5ff |