Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
Dotfiles
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
James Vasile
Dotfiles
Commits
fd6725f5
Commit
fd6725f5
authored
5 months ago
by
James Vasile
Browse files
Options
Downloads
Patches
Plain Diff
Add tridactyl config file
parent
c6145974
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
files/.config/tridactyl/tridactylrc
+42
-0
42 additions, 0 deletions
files/.config/tridactyl/tridactylrc
with
42 additions
and
0 deletions
files/.config/tridactyl/tridactylrc
0 → 100644
+
42
−
0
View file @
fd6725f5
" vim: filetype=vim
bind
<
C
-
h
>
tabprev
bind
<
C
-
l
>
tabnext
" h goes back, l goes forward
bind
h
back
bind
l
forward
" H and L do scrollpx, though I don't use these.
bind H scrollpx
bind L scrollpx
" F for hints, f for hints that open background tabs
"bind f hint -b
"bind F hint
" This bit of javascript launches jetzt, a speed-reading popup, or at least it tries to. I copied the javascript from the bookmarklet, but it doens't work :/
bind gs
js
(
function
()
{
var addStyle
=
function
(
url
)
{
var style
=
document
.
createElement
(
'link'
)
;style
.
rel
=
'stylesheet'
;style
.
type
=
'text/css'
;style
.
href
=
url;document
.
head
.
appendChild
(
style
)
;
}
;var addScript
=
function
(
url
,
cb
)
{
var script
=
document
.
createElement
(
'script'
)
;script
.
src
=
url;
if
(
cb
)
{
script
.
onload
=
cb
;
}
document
.
body
.
appendChild
(
script
)
;
}
;
if
(
typeof
window
.
jetzt
===
'undefined'
)
{
var
cb
=
function
()
{
window
.
jetzt
.
select
()
;
}
;addStyle
(
'https://ds300.github.io/jetzt/jetzt.css'
)
;addScript
(
'https://ds300.github.io/jetzt/jetzt-solid.min.js'
,
cb
)
;
}
else
{
window
.
jetzt
.
select
()
;
}})()
;
window
.
jetzt
.
select
()
;
" Use emacs as our editor
set
editorcmd
/usr/
local
/bin/
emacsclient
" The default jump of 10 is a bit much.
bind
j
scrollline
7
bind
k
scrollline
-7
" 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
" New reddit is bad
autocmd DocStart ^http
(
s?
):
//
www
.
reddit
.
com
/r/
js
tri
.
excmds
.
urlmodify
(
"-t"
,
"www"
,
"old"
)
" autocmd DocStart ^http(s?)://www.amazon.com js tri.excmds.urlmodify("-t", "smiles", "smile")
" I have no idea what this does
set
profiledir
/home/
james
/.mozilla/
firefox/ztp7dj8q
.
default
-
release
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment