forked from vEnhance/von
-
Notifications
You must be signed in to change notification settings - Fork 0
/
rc.py.EXAMPLE
67 lines (55 loc) · 2.22 KB
/
rc.py.EXAMPLE
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
import sys
import os
import tempfile
# Pick a path to store the problems in
# On Windows, the HOME variable doesn't exist
# and you should use HOMEPATH instead
VON_BASE_PATH = os.path.join(os.environ.get("HOME", ""), "Documents/VON/")
# Pick a place to store von metadata (index and cache)
VON_INDEX_NAME = "index"
VON_INDEX_PATH = os.path.join(VON_BASE_PATH, VON_INDEX_NAME)
VON_CACHE_NAME = "cache"
VON_CACHE_PATH = os.path.join(VON_BASE_PATH, VON_CACHE_NAME)
# Choose an editor
# On Windows, the following line may work better:
# EDITOR = r'C:\Windows\vim.bat'
EDITOR = os.environ.get('EDITOR','vim')
# Directories for backups and temporary files.
# You may want to reconfigure these on non-Linux systems
# as the tmp directory may not work properly otherwise
# (or if you prefer to put these in a more visible folder).
# path to put previewer TeX file
VON_PREVIEW_PATH = os.path.join(tempfile.gettempdir(), "preview/von_preview.tex")
# path to put posted output files
VON_POST_OUTPUT_DIR = os.path.join(tempfile.gettempdir(), "po/")
# In von, problem statement is separated from metadata
# and solution using three dashes surrounded on its own line.
# You can change that here.
SEPERATOR = '\n---\n'
NSEPERATOR = '\n' + SEPERATOR + '\n'
# Change to False below if
# your terminal sucks and doesn't have color sequences
# (e.g. you are using Windows)
USE_COLOR = True
# The following text is placed as you do editing
# in order to help you remember which tags you have.
TAG_HINT_TEXT = """# Any text you want to display on the YAML editor.
# For example, a list of tags to use."""
# These particular tags are used for sorting
# and are highlighted differently.
# Specify them however you want.
# Should be in increasing order.
SORT_TAGS = ['trivial', 'easy', 'medium', 'tricky', 'hard', 'brutal']
# You don't need to specify the other tags you plan to use
# anywhere else in this configuration file,
# which is why TAG_HINT_TEXT can be helpful for memory.
# The following lines should autodetect your operating system,
# so you only need to change them if you have issues.
import sys
if sys.platform.startswith("win32"):
USER_OS = "windows"
elif sys.platform.startswith("darwin"):
USER_OS = "mac"
else:
USER_OS = "linux" # including cygwin
# vim: ft=python