mirror of
https://github.com/vale981/tridactyl
synced 2025-03-04 17:11:40 -05:00
Fix #671: support _ prefix for RC, improve docs
This commit is contained in:
parent
e958d977c5
commit
dd94e5a493
2 changed files with 6 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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.
|
||||
*
|
||||
|
|
Loading…
Add table
Reference in a new issue