From a8c0771d9b55bee5abad246c84c2698b5df20037 Mon Sep 17 00:00:00 2001 From: Oliver Blanthorn Date: Thu, 17 May 2018 21:06:15 +0100 Subject: [PATCH] Update readme for RC and searchurls --- readme.md | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/readme.md b/readme.md index 43970a71..b3e933b3 100644 --- a/readme.md +++ b/readme.md @@ -135,15 +135,21 @@ See `:help bind` for details about this command. `set searchurls.esa http://www.esa.int/esasearch?q=` + You can also add `%s` to specify exactly where the search query should go, which is useful for more inventive uses, such as + + `set searchurls.phrasebook https://translate.google.co.uk/#en/%s/my%20hovercraft%20is%20full%20of%20eels` + + after which `open phrasebook [fr|de|la|es|hi|it...]` will work as expected. + - Can I import/export settings, and does Tridactyl use an external configuration file just like Vimperator? - Sort of: if you do `set storageloc local`, a JSON file will appear at `\browser-extension-data\tridactyl.vim@cmcaine.co.uk\storage.js`. You can find you profile folder by going to `about:support`. + Yes, if you have `native` working, `$XDG_CONFIG_DIR/tridactyl/tridactylrc` or `~/.tridactylrc` will be read at startup via an `autocmd` and `source`. There is an (example file available on our repository)[https://github.com/cmcaine/tridactyl/blob/master/.tridactylrc]. - You can edit this file to your heart's content. A more traditional rc file is planned but will require a native messenger. For more information, see [issue #79](https://github.com/cmcaine/tridactyl/issues/79). + If you can't use the native messenger for some reason, there is a workaround: if you do `set storageloc local`, a JSON file will appear at `\browser-extension-data\tridactyl.vim@cmcaine.co.uk\storage.js`. You can find your profile folder by going to `about:support`. You can edit this file to your heart's content. - I hate the light, can I get a dark theme/dark mode? - Yes! `set theme dark`. Thanks to @fugerf. + Yes: `set theme dark` or `colors dark`. Thanks to @fugerf. - How can I bind keys using the control/alt key modifiers (eg: `ctrl+^`)?