Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve example config #18

Merged
merged 2 commits into from
Jul 31, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 18 additions & 15 deletions docs/example_config.ini
Original file line number Diff line number Diff line change
@@ -1,34 +1,37 @@
[General]
#The standard working directory.
# Configure the working directory on startup
working_directory = ~/Documents/typst_projects/
#The default application layout.
#It can be typewriter (editor under preview), editor_right (editor right of preview) or editor_left (editor left of preview).
# Use . to start from the current directory the program was started from
# working_directory = .

# The default application layout
# It can be typewriter (editor under preview), editor_right (editor right of preview) or editor_left (editor left of preview)
default_layout = typewriter

[Compiler]
#The name of the typst compiler on your system (in almost all cases simply typst).
#You can also provide an absolute path to the typst executable, e.g.:
#name = /home/username/Code/typst/target/release/typst
# The name of the typst compiler on your system (in almost all cases simply typst)
name = typst
#The compiler mode (live/on_demand)
# Alternatively one can provide an absolute path to the typst executable, e.g.:
# name = /home/username/Code/typst/target/release/typst
# The compiler mode (live/on_demand)
mode = live

[Editor]
#Save all open tabs before compiling
# Save all open tabs before compiling
save_at_run = True
#The code highlighter style to use. See https://pygments.org/styles/ for available options.
# The code highlighter style to use. See https://pygments.org/styles/ for available options
highlighter_style = staroffice
#Use syntax highlighting.
# Use syntax highlighting
highlight_syntax = True
#Show line numbers.
# Show line numbers
show_line_numbers = True
#Highlight the current line.
# Highlight the current line
highlight_line = True
#Use spaces instead of tabs.
# Use spaces instead of tabs
use_spaces = True

[Internals]
#The path where the list of recent files will be saved.
# The path where the list of recent files will be saved
recent_files_path = ~/.config/typstwriter/recentFiles.txt
#The number of files kept in the list.
# The number of recently opened files to remember
recent_files_length = 16