-
-
Notifications
You must be signed in to change notification settings - Fork 410
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
configuration file with custom key bindings #79
Comments
WebExtensions are not permitted to read the filesystem directly, so we don't have a config file. Binds that you make with In the future, we'll probably have a config page that displays a big textarea for adding excmds, etc. When we have a nativeMessenger, users who install that (it has to be a separate install) will be able to have tridactyl read a config file from an rc file. |
What could most likely be done is an options page (which I've been working on designing to make a Pull Request), and for those who prefer a configuration file a pair of "save config" and "upload config" buttons could be present on that page. |
@hppavilion1 - That is exactly how LeechBlock (NG) does it in FF, with an export/import button and text files. On the other hand, cVim (Chromium) appears to be able to read right out of the filesystem with a line like this in the config. That kind of functionality presumably depends on the native messenger.
|
Vim-vixen has a JSON config section in the add-on's preference page but a real config file would be great, too bad WebExtensions doesn't permit that. |
I would also be really happy to be able to export configs so as to share them more easily between myself and other people. |
I found that tridactyl configuration data is stored in an sqlite db. Here is its location on my linux machine: This db is unencrypted. Basically, it's possible to "export" configuration data manually from this db. And I wrote a simple bash script to help update configurations: https://gist.github.com/KevCui/296a9fbd6d3726b65b5ebd053b2d9c9d Meanwhile, I'm waiting for the official support of import/export configurations 😉 |
May 2019 edit: I believe Original message: @krazycavin if you do In fact, you can just add stuff to that file anyway, and it should overwrite any sync settings (as per https://github.com/cmcaine/tridactyl/blob/c2c5d2b5ef8a485254161fd6391295fe97cbf6a4/src/config.ts#L172). I've never actually tested any of this, however... |
@bovine3dom I tried |
Would it be possible to read the config by opening it in an iframe |
Sourcing configuration from a JSON file with the native messenger would be pretty trivial. Is that what you mean? Otherwise, the vim-style rc files will have to wait until #314 is reviewed. |
I am not really aware of how the native stuff works. If i understand correctly the configuration page would not be interacting with the filesystem which is fine but ideally we could have an actual config file that can be under version control and use our advanced editors to modify it etc. My intuition is that since the browser can navigate to local files we can have read access to the file without any fancy apis (through an iframe for example) but im not sure what can go wrong...
On April 30, 2018 3:03:57 PM GMT+01:00, Oliver Blanthorn ***@***.***> wrote:
Sourcing configuration from a JSON file with the native messenger would
be pretty trivial. Is that what you mean? Otherwise, the vim-style rc
files will have to wait until #314 is reviewed.
--
You are receiving this because you commented.
Reply to this email directly or view it on GitHub:
#79 (comment)
The University of Edinburgh is a charitable body, registered in
Scotland, with registration number SC005336.
|
@fakedrake sorry, your reply got buried in a sea of notifications.
Nope, Mozilla block access to web extensions on file URIs on purpose so that Bob's Web Emoji extension can't steal your SSH keys. I finally got around to chopping up #314 and RC files are now in master via #514. |
Local storage is moving away from JSON, if anyone was using it: https://blog.mozilla.org/addons/2018/08/03/new-backend-for-storage-local-api/ |
Hey @bovine3dom, is there a way to reload the config file in Firefox after making changes? |
|
First of all, thanks for writing this extension. I'm a long time vimperator user, but clearly that chapter is over with the latest firefox.
Is there a way to have tridactyl read a config file with custom key-bindings, and options that one could specify? If so, what should it be called and where should it live?
I typically have a zoo of *rc files that i share between machines and would ideally like to have one for tridactyl as well.
i'm on linux.
thanks!
The text was updated successfully, but these errors were encountered: