-
-
Save BurntSushi/393546a65db38d57cedcfd72c6d89bf3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" vim: filetype=vim | |
" This wipes all existing settings. This means that if a setting in this file | |
" is removed, then it will return to default. In other words, this file serves | |
" as an enforced single point of truth for Tridactyl's configuration. | |
sanitize tridactyllocal tridactylsync | |
" Just use a blank page for new tab. It would be nicer to use the standard | |
" Firefox homepage, but Tridactyl doesn't support this yet. | |
set newtab about:blank | |
" Use vim in tmux for editor. | |
set editorcmd terminal -e tmux -u new vim -S /home/andrew/.vim/tridactyl.vim | |
" Ctrl-F should use the browser's native 'find' functionality. | |
unbind <C-f> | |
" But also support Tridactyl search too. | |
bind / fillcmdline find | |
bind ? fillcmdline find -? | |
bind n findnext 1 | |
bind N findnext -1 | |
" Remove search highlighting. | |
bind ,<Space> nohlsearch | |
" Use sensitive case. Smart case would be nice here, but it doesn't work. | |
set findcase sensitive | |
" Smooth scrolling, yes please. This is still a bit janky in Tridactyl. | |
set smoothscroll true | |
" The default jump of 10 is a bit much. | |
bind j scrollline 5 | |
bind k scrollline -5 | |
" K and J should move between tabs. x should close them. | |
bind J tabprev | |
bind K tabnext | |
bind x tabclose | |
" Don't run Tridactyl on some web sites because it doesn't work well, or | |
" because the web site has its own keybindings. | |
autocmd DocStart mail.google.com mode ignore | |
" Sometimes the status bar in the bottom left corner overlaps the Tridactyl | |
" command line, so set an option to move the status bar to the right. | |
guiset_quiet hoverlink right | |
" Set up some shortcuts for running custom scripts. | |
bind zz composite jsb tri.native.run('cat /home/andrew/.config/tridactyl/rustdoc-condensed.js') | js -p eval(JS_ARG.content) |
@BurntSushi You want the special betas from here: https://tridactyl.cmcaine.co.uk/betas/nonewtab/
Unfortunately, if we ask for permission to overwrite the new tab page, we have to use it. And we can't give away that permission, so no value of set newtab
will let us use the original about:newtab
. So we have to ship a different version of the webextension.
The steps are:
- Install the webextension from the above link (you may just get prompted when you click the link or you may need to download the XPI and then add it manually in about:addons (cog-icon, install add-on from file))
- Disable the other copy of tridactyl
Good luck!
Ah thanks! And yeah, I had installed the special beta. The key step I was missing was disabling the old copy of tridactyl. That works!
Great!
…On Mon, 13 Jan 2020 at 14:54, Andrew Gallant ***@***.***> wrote:
Ah thanks! And yeah, I had installed the special beta. The key step I was
missing was disabling the old copy of tridactyl. That works!
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<https://gist.github.com/393546a65db38d57cedcfd72c6d89bf3?email_source=notifications&email_token=ABNZA6NVYKH6O6NYQQQFN4DQ5R6BZA5CNFSM4KCISZ62YY3PNVWWK3TUL52HS4DFVNDWS43UINXW23LFNZ2KUY3PNVWWK3TUL5UWJTQAF7NSA#gistcomment-3136288>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABNZA6IP2C2ZFGXNIGD6SWTQ5R6BZANCNFSM4KCISZ6Q>
.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@cmcaine Thanks! I tried the latest version (1.17.1), but it looks like the newtab behavior hasn't changed? I tried using
set newtab about:newtab
, but that seems to open a new additional window for every new window I have open.(I do have native enabled.)