Fix #671: support _ prefix for RC, improve docs

This commit is contained in:
Oliver Blanthorn 2018-07-30 17:56:05 +01:00
parent e958d977c5
commit dd94e5a493
No known key found for this signature in database
GPG key ID: 2BB8C36BB504BFF3
2 changed files with 6 additions and 2 deletions

View file

@ -14,7 +14,7 @@ import time
import unicodedata
DEBUG = False
VERSION = "0.1.7"
VERSION = "0.1.8"
class NoConnectionError(Exception):
@ -95,6 +95,8 @@ def findUserConfigFile():
candidate_files = [
os.path.join(config_dir, "tridactyl", "tridactylrc"),
os.path.join(home, ".tridactylrc"),
os.path.join(home, "_tridactylrc"),
os.path.join(home, , "_config", "tridactylrc"),
]
config_path = None

View file

@ -415,7 +415,9 @@ export async function installnative() {
/**
* Runs an RC file from disk.
*
* If no argument given, it will try to open ~/.tridactylrc, ~/.config/tridactylrc or $XDG_CONFIG_HOME/tridactyl/tridactylrc in reverse order.
* If no argument given, it will try to open ~/.tridactylrc, ~/.config/tridactylrc or $XDG_CONFIG_HOME/tridactyl/tridactylrc in reverse order. You may use a `_` in place of a leading `.` if you wish, e.g, if you use Windows.
*
* On Windows, the `~` expands to `%USERPROFILE%`.
*
* The RC file is just a bunch of Tridactyl excmds (i.e, the stuff on this help page). Settings persist in local storage; add `sanitise tridactyllocal tridactylsync` to make it more Vim like. There's an [example file](https://raw.githubusercontent.com/cmcaine/tridactyl/master/.tridactylrc) if you want it.
*