mirror of
https://github.com/LukeSmithxyz/voidrice.git
synced 2026-03-20 01:37:45 +01:00
new (better) shortcut paradigm
This commit is contained in:
parent
0e171e78ba
commit
e048f7eb48
39
.bashrc
39
.bashrc
@ -104,39 +104,6 @@ alias toit="sdcv -u quick_english-italian"
|
||||
alias gword="sdcv -u quick_german-english"
|
||||
alias tog="sdcv -u quick_english-german"
|
||||
|
||||
|
||||
|
||||
#Directory Shortcuts:
|
||||
alias h="cd ~ && ls -a"
|
||||
alias d="cd ~/Documents && ls -a"
|
||||
alias D="cd ~/Downloads && ls -a"
|
||||
alias p="cd ~/Pictures && ls -a"
|
||||
alias v="cd ~/Videos && ls -a"
|
||||
alias m="cd ~/Music && ls -a"
|
||||
alias b="cd ~/Books && ls -a"
|
||||
alias s="cd ~/.config/Scripts && ls -a"
|
||||
alias r="cd / && ls -a"
|
||||
alias cf="cd ~/.config && ls -a"
|
||||
alias cfb="vim ~/.config/Scripts/bashrc"
|
||||
alias cfz="vim ~/.zshrc"
|
||||
alias cfv="vim ~/.config/Scripts/vimrc"
|
||||
alias cfr="vim ~/.config/ranger/rc.conf.base"
|
||||
alias cfi="vim ~/.config/i3/config"
|
||||
alias cfq="vim ~/.config/qutebrowser/keys.conf.base"
|
||||
alias cfQ="vim ~/.config/qutebrowser/qutebrowser.conf"
|
||||
alias cfm="vim ~/.config/mutt/muttrc"
|
||||
alias cfM="vim ~/.config/moc/keymap"
|
||||
alias cff="vim ~/.config/Scripts/folders"
|
||||
alias cfc="vim ~/.config/Scripts/configs"
|
||||
alias cft="vim ~/.config/termite/config"
|
||||
alias cfT="vim ~/.config/Scripts/tmux.conf"
|
||||
alias eb="vim ~/Documents/LaTeX/uni.bib"
|
||||
alias cv="vim ~/Documents/LaTeX/cv.tex"
|
||||
alias cfl="vim ~/.config/mutt/lukexyz.info"
|
||||
alias cfx="vim ~/.config/mutt/luxmyth.info"
|
||||
alias cfk="vim ~/.config/mutt/kulade.cock"
|
||||
alias cfo="vim ~/.config/mutt/kulade.info"
|
||||
alias cfa="vim ~/.config/mutt/aliases"
|
||||
alias cfp="vim ~/.config/polybar/config"
|
||||
alias cfd="vim ~/.Xdefaults"
|
||||
alias TO="vim ~/Creations/Videos/todo.md"
|
||||
# DO NOT DELETE LMAO
|
||||
# The two lines above and below this are necessary for the shortcut sync.
|
||||
# DO NOT DELETE LMAO
|
||||
|
||||
@ -1,8 +1,8 @@
|
||||
h ~
|
||||
d ~/Documents
|
||||
D ~/Downloads
|
||||
p ~/Pictures
|
||||
v ~/Videos
|
||||
pp ~/Pictures
|
||||
vv ~/Videos
|
||||
m ~/Music
|
||||
b ~/Books
|
||||
s ~/.config/Scripts
|
||||
|
||||
@ -1,50 +1,63 @@
|
||||
from pathlib import Path
|
||||
import csv
|
||||
from re import sub
|
||||
from re import compile
|
||||
|
||||
qute = ""
|
||||
rang = ""
|
||||
bash = ""
|
||||
#fish = ""
|
||||
quteshortcuts = ""
|
||||
rangershortcuts = ""
|
||||
bashshortcuts = ""
|
||||
#fishshortcuts = ""
|
||||
home = str(Path.home())+"/"
|
||||
rangerlocation=home+".config/ranger/rc.conf"
|
||||
bashlocation=home+".bashrc"
|
||||
qutelocation=home+".config/qutebrowser/config.py"
|
||||
|
||||
with open(".config/qutebrowser/keys.conf.base") as qb:
|
||||
qute+=qb.read()
|
||||
with open(".config/ranger/rc.conf.base") as rg:
|
||||
rang+=rg.read()
|
||||
with open(".config/Scripts/bashrc") as bsh:
|
||||
bash+=bsh.read()
|
||||
#with open(".config/fish/config_base.fish") as fsh:
|
||||
#fish+=fsh.read()
|
||||
|
||||
# These are the labels that demarcate where the shortcuts
|
||||
# go in the config files.
|
||||
beg="# DO NOT DELETE LMAO\n"
|
||||
end="# DO NOT DELETE LMAO"
|
||||
|
||||
#First we open the list of folder shortcuts and go down each line adding each in the required syntax to each of the three configs:
|
||||
|
||||
with open(".config/Scripts/folders") as fold:
|
||||
with open(home+".config/Scripts/folders") as fold:
|
||||
for line in csv.reader(fold, dialect="excel-tab"):
|
||||
#Adds the qutebrowser downloads commands:
|
||||
qute+="set storage download-directory "+line[1]+" ;; hint links download\n\t;"+line[0]+"\n"
|
||||
#Adds the ranger go, tab, move and yank commands:
|
||||
rang+=("map g"+line[0]+" cd "+line[1]+"\n")
|
||||
rang+=("map t"+line[0]+" tab_new "+line[1]+"\n")
|
||||
rang+=("map m"+line[0]+" shell mv %s "+line[1]+"\n")
|
||||
rang+=("map Y"+line[0]+" shell cp -r %s "+line[1]+"\n")
|
||||
#Adds the bash shortcuts:
|
||||
bash+=("alias "+line[0]+"=\"cd "+line[1]+" && ls -a\"\n")
|
||||
#fish+=("alias "+line[0]+"=\"cd "+line[1]+" ; ls -a\"\n")
|
||||
#fish+=("abbr --add "+line[0]+" \"cd "+line[1]+" ; ls -a\"\n")
|
||||
rangershortcuts+=("map g"+line[0]+" cd "+line[1]+"\n")
|
||||
rangershortcuts+=("map t"+line[0]+" tab_new "+line[1]+"\n")
|
||||
rangershortcuts+=("map m"+line[0]+" shell mv %s "+line[1]+"\n")
|
||||
rangershortcuts+=("map Y"+line[0]+" shell cp -r %s "+line[1]+"\n")
|
||||
#Adds the bashshortcuts shortcuts:
|
||||
bashshortcuts+=("alias "+line[0]+"=\"cd "+line[1]+" && ls -a\"\n")
|
||||
#qutebrowser shortcuts:
|
||||
quteshortcuts+="config.bind(';"+line[0]+"', 'set downloads.location.directory "+line[1]+" ;; hint links download')\n"
|
||||
|
||||
#Goes thru the config file file and adds the shortcuts to both bash and ranger.
|
||||
#Goes thru the config file file and adds the shortcuts to both bashshortcuts and ranger.
|
||||
|
||||
with open(".config/Scripts/configs") as conf:
|
||||
with open(home+".config/Scripts/configs") as conf:
|
||||
for line in csv.reader(conf, dialect="excel-tab"):
|
||||
bash+=("alias "+line[0]+"=\"vim "+line[1]+"\"\n")
|
||||
#fish+=("alias "+line[0]+"=\"vim "+line[1]+"\"\n")
|
||||
#fish+=("abbr --add "+line[0]+" \"vim "+line[1]+"\"\n")
|
||||
rang+=("map "+line[0]+" shell vim "+line[1]+"\n")
|
||||
bashshortcuts+=("alias "+line[0]+"=\"vim "+line[1]+"\"\n")
|
||||
#fishshortcuts+=("alias "+line[0]+"=\"vim "+line[1]+"\"\n")
|
||||
#fishshortcuts+=("abbr --add "+line[0]+" \"vim "+line[1]+"\"\n")
|
||||
rangershortcuts+=("map "+line[0]+" shell vim "+line[1]+"\n")
|
||||
|
||||
|
||||
with open(".config/ranger/rc.conf", "w") as outrang:
|
||||
outrang.write(rang)
|
||||
with open(".config/qutebrowser/keys.conf","w") as outqb:
|
||||
outqb.write(qute)
|
||||
with open(".bashrc","w") as outbash:
|
||||
outbash.write(bash)
|
||||
#with open(".config/fish/config.fish","w") as outfish:
|
||||
#outfish.write(fish)
|
||||
def replaceInMarkers(text, shortcuts):
|
||||
markers = compile(beg+"(.|\s)*"+end)
|
||||
replacement =beg+shortcuts+end
|
||||
return sub(markers, replacement, text)
|
||||
|
||||
|
||||
|
||||
def writeShortcuts(location, shortcuts):
|
||||
with open(location, "r+") as input:
|
||||
final = ""
|
||||
final += input.read()
|
||||
final = replaceInMarkers(final, shortcuts)
|
||||
input.seek(0)
|
||||
input.write(final)
|
||||
input.truncate()
|
||||
|
||||
writeShortcuts(rangerlocation, rangershortcuts)
|
||||
writeShortcuts(bashlocation, bashshortcuts)
|
||||
writeShortcuts(qutelocation, quteshortcuts)
|
||||
|
||||
3
.config/qutebrowser/config.py
Normal file
3
.config/qutebrowser/config.py
Normal file
@ -0,0 +1,3 @@
|
||||
# DO NOT DELETE LMAO
|
||||
# Don't delete the above/below lines here.
|
||||
# DO NOT DELETE LMAO
|
||||
@ -1,722 +0,0 @@
|
||||
# vim: ft=conf
|
||||
#
|
||||
# In this config file, qutebrowser's key bindings are configured.
|
||||
# The format looks like this:
|
||||
#
|
||||
# [keymode]
|
||||
#
|
||||
# command
|
||||
# keychain
|
||||
# keychain2
|
||||
# ...
|
||||
#
|
||||
# All blank lines and lines starting with '#' are ignored.
|
||||
# Inline-comments are not permitted.
|
||||
#
|
||||
# keymode is a comma separated list of modes in which the key binding should be
|
||||
# active. If keymode starts with !, the key binding is active in all modes
|
||||
# except the listed modes.
|
||||
#
|
||||
# For special keys (can't be part of a keychain), enclose them in `<`...`>`.
|
||||
# For modifiers, you can use either `-` or `+` as delimiters, and these names:
|
||||
#
|
||||
# * Control: `Control`, `Ctrl`
|
||||
# * Meta: `Meta`, `Windows`, `Mod4`
|
||||
# * Alt: `Alt`, `Mod1`
|
||||
# * Shift: `Shift`
|
||||
#
|
||||
# For simple keys (no `<>`-signs), a capital letter means the key is pressed
|
||||
# with Shift. For special keys (with `<>`-signs), you need to explicitly add
|
||||
# `Shift-` to match a key pressed with shift.
|
||||
#
|
||||
# Note that default keybindings are always bound, and need to be explicitly
|
||||
# unbound if you wish to remove them:
|
||||
#
|
||||
# <unbound>
|
||||
# keychain
|
||||
# keychain2
|
||||
# ...
|
||||
|
||||
[!normal]
|
||||
|
||||
leave-mode
|
||||
<escape>
|
||||
<ctrl-[>
|
||||
|
||||
[normal]
|
||||
# Keybindings for normal mode.
|
||||
|
||||
spawn youtube-dl -ic {url}
|
||||
ytv
|
||||
|
||||
spawn youtube-dl -xic {url}
|
||||
yta
|
||||
#spawn youtube-dl -xic {url}
|
||||
#;a
|
||||
|
||||
spawn mpv {url}
|
||||
m
|
||||
|
||||
clear-keychain ;; search
|
||||
<escape>
|
||||
|
||||
set-cmd-text -s :open
|
||||
o
|
||||
|
||||
set-cmd-text :open {url:pretty}
|
||||
go
|
||||
|
||||
set-cmd-text -s :open -t
|
||||
O
|
||||
|
||||
set-cmd-text :open -t {url:pretty}
|
||||
gO
|
||||
|
||||
set-cmd-text -s :open -b
|
||||
xo
|
||||
|
||||
set-cmd-text :open -b {url:pretty}
|
||||
xO
|
||||
|
||||
set-cmd-text -s :open -w
|
||||
wo
|
||||
|
||||
set-cmd-text :open -w {url:pretty}
|
||||
wO
|
||||
|
||||
open -t
|
||||
ga
|
||||
<ctrl-t>
|
||||
|
||||
open -w
|
||||
<ctrl-n>
|
||||
|
||||
tab-close
|
||||
<ctrl-w>
|
||||
|
||||
tab-close -o
|
||||
D
|
||||
|
||||
tab-only
|
||||
co
|
||||
|
||||
tab-focus
|
||||
J
|
||||
<ctrl-pgdown>
|
||||
|
||||
tab-move
|
||||
gm
|
||||
|
||||
tab-move -
|
||||
gl
|
||||
|
||||
tab-move +
|
||||
gr
|
||||
|
||||
tab-prev
|
||||
K
|
||||
<ctrl-pgup>
|
||||
|
||||
tab-clone
|
||||
gC
|
||||
|
||||
reload
|
||||
r
|
||||
<f5>
|
||||
|
||||
reload -f
|
||||
R
|
||||
<ctrl-f5>
|
||||
|
||||
back
|
||||
H
|
||||
|
||||
back -t
|
||||
th
|
||||
|
||||
back -w
|
||||
wh
|
||||
|
||||
forward
|
||||
L
|
||||
|
||||
forward -t
|
||||
tl
|
||||
|
||||
forward -w
|
||||
wl
|
||||
|
||||
fullscreen
|
||||
<f11>
|
||||
|
||||
hint
|
||||
f
|
||||
|
||||
hint all tab
|
||||
F
|
||||
|
||||
hint all window
|
||||
wf
|
||||
|
||||
#hint all tab-bg
|
||||
#;b
|
||||
|
||||
#hint all tab-fg
|
||||
#;f
|
||||
|
||||
hint images
|
||||
;i
|
||||
|
||||
hint images tab
|
||||
;I
|
||||
|
||||
hint images tab-bg
|
||||
.i
|
||||
|
||||
#hint links fill :open {hint-url}
|
||||
#;o
|
||||
|
||||
hint links fill :open -t {hint-url}
|
||||
;O
|
||||
|
||||
hint links fill :open -b {hint-url}
|
||||
.o
|
||||
|
||||
#hint links yank
|
||||
#;y
|
||||
|
||||
hint links yank-primary
|
||||
;Y
|
||||
|
||||
hint --rapid links tab-bg
|
||||
;r
|
||||
|
||||
#hint --rapid links window
|
||||
#;R
|
||||
|
||||
#hint links download
|
||||
#;d
|
||||
hint links spawn mpv --loop {hint-url}
|
||||
;v
|
||||
|
||||
hint links spawn transmission-remote -a {hint-url}
|
||||
gt
|
||||
|
||||
scroll left
|
||||
h
|
||||
|
||||
scroll down
|
||||
j
|
||||
|
||||
scroll up
|
||||
k
|
||||
|
||||
scroll right
|
||||
l
|
||||
|
||||
undo
|
||||
U
|
||||
<ctrl-shift-t>
|
||||
|
||||
scroll-perc 0
|
||||
gg
|
||||
|
||||
scroll-perc
|
||||
G
|
||||
|
||||
search-next
|
||||
n
|
||||
|
||||
search-prev
|
||||
N
|
||||
|
||||
enter-mode insert
|
||||
i
|
||||
|
||||
enter-mode caret
|
||||
v
|
||||
|
||||
enter-mode set_mark
|
||||
`
|
||||
|
||||
enter-mode jump_mark
|
||||
'
|
||||
|
||||
yank
|
||||
yy
|
||||
|
||||
yank -s
|
||||
yY
|
||||
|
||||
yank title -s
|
||||
yT
|
||||
|
||||
yank domain
|
||||
yd
|
||||
|
||||
yank domain -s
|
||||
yD
|
||||
|
||||
yank pretty-url
|
||||
yp
|
||||
|
||||
yank pretty-url -s
|
||||
yP
|
||||
|
||||
open -- {clipboard}
|
||||
pp
|
||||
|
||||
open -- {primary}
|
||||
pP
|
||||
|
||||
open -t -- {clipboard}
|
||||
Pp
|
||||
|
||||
open -t -- {primary}
|
||||
PP
|
||||
|
||||
open -w -- {clipboard}
|
||||
wp
|
||||
|
||||
open -w -- {primary}
|
||||
wP
|
||||
|
||||
set-cmd-text -s :quickmark-load
|
||||
b
|
||||
|
||||
set-cmd-text -s :quickmark-load -t
|
||||
B
|
||||
|
||||
set-cmd-text -s :quickmark-load -w
|
||||
wb
|
||||
|
||||
bookmark-add
|
||||
M
|
||||
|
||||
set-cmd-text -s :bookmark-load
|
||||
gb
|
||||
|
||||
set-cmd-text -s :bookmark-load -t
|
||||
gB
|
||||
|
||||
set-cmd-text -s :bookmark-load -w
|
||||
wB
|
||||
|
||||
save
|
||||
sf
|
||||
|
||||
set-cmd-text -s :set
|
||||
ss
|
||||
|
||||
set-cmd-text -s :set -t
|
||||
sl
|
||||
|
||||
set-cmd-text -s :bind
|
||||
sk
|
||||
|
||||
zoom-out
|
||||
-
|
||||
|
||||
zoom-in
|
||||
+
|
||||
|
||||
zoom
|
||||
=
|
||||
|
||||
navigate prev
|
||||
[[
|
||||
|
||||
navigate next
|
||||
]]
|
||||
|
||||
navigate prev -t
|
||||
{{
|
||||
|
||||
navigate next -t
|
||||
}}
|
||||
|
||||
navigate up
|
||||
gu
|
||||
|
||||
navigate up -t
|
||||
gU
|
||||
|
||||
navigate increment
|
||||
<ctrl-a>
|
||||
|
||||
navigate decrement
|
||||
<ctrl-x>
|
||||
|
||||
inspector
|
||||
wi
|
||||
|
||||
set storage download-directory ~/Downloads ;; download
|
||||
gd
|
||||
|
||||
download-cancel
|
||||
ad
|
||||
|
||||
download-clear
|
||||
cd
|
||||
|
||||
view-source
|
||||
gf
|
||||
|
||||
#set-cmd-text -s :buffer
|
||||
#gt
|
||||
|
||||
|
||||
tab-focus last
|
||||
<ctrl-tab>
|
||||
|
||||
enter-mode passthrough
|
||||
<ctrl-v>
|
||||
|
||||
quit
|
||||
<ctrl-q>
|
||||
|
||||
scroll-page 0 1
|
||||
<ctrl-f>
|
||||
|
||||
scroll-page 0 -1
|
||||
<ctrl-b>
|
||||
|
||||
scroll-page 0 0.5
|
||||
<ctrl-d>
|
||||
d
|
||||
|
||||
scroll-page 0 -0.5
|
||||
<ctrl-u>
|
||||
u
|
||||
|
||||
tab-focus 1
|
||||
<alt-1>
|
||||
|
||||
tab-focus 2
|
||||
<alt-2>
|
||||
|
||||
tab-focus 3
|
||||
<alt-3>
|
||||
|
||||
tab-focus 4
|
||||
<alt-4>
|
||||
|
||||
tab-focus 5
|
||||
<alt-5>
|
||||
|
||||
tab-focus 6
|
||||
<alt-6>
|
||||
|
||||
tab-focus 7
|
||||
<alt-7>
|
||||
|
||||
tab-focus 8
|
||||
<alt-8>
|
||||
|
||||
tab-focus 9
|
||||
<alt-9>
|
||||
|
||||
home
|
||||
<ctrl-h>
|
||||
|
||||
stop
|
||||
<ctrl-s>
|
||||
|
||||
print
|
||||
<ctrl-alt-p>
|
||||
|
||||
open qute:settings
|
||||
Ss
|
||||
|
||||
follow-selected
|
||||
<return>
|
||||
<ctrl-m>
|
||||
<ctrl-j>
|
||||
<shift-return>
|
||||
<enter>
|
||||
<shift-enter>
|
||||
|
||||
follow-selected -t
|
||||
<ctrl-return>
|
||||
<ctrl-enter>
|
||||
|
||||
hint inputs
|
||||
;p
|
||||
|
||||
repeat-command
|
||||
.
|
||||
|
||||
set-cmd-text /
|
||||
/
|
||||
|
||||
set-cmd-text ?
|
||||
?
|
||||
|
||||
set-cmd-text :
|
||||
:
|
||||
|
||||
record-macro
|
||||
q
|
||||
|
||||
run-macro
|
||||
@
|
||||
|
||||
[insert]
|
||||
# Keybindings for insert mode.
|
||||
# Since normal keypresses are passed through, only special keys are
|
||||
# supported in this mode.
|
||||
# Useful hidden commands to map in this section:
|
||||
# * `open-editor`: Open a texteditor with the focused field.
|
||||
# * `paste-primary`: Paste primary selection at cursor position.
|
||||
|
||||
open-editor
|
||||
<ctrl-e>
|
||||
|
||||
insert-text {primary}
|
||||
<shift-ins>
|
||||
|
||||
[hint]
|
||||
# Keybindings for hint mode.
|
||||
# Since normal keypresses are passed through, only special keys are
|
||||
# supported in this mode.
|
||||
# Useful hidden commands to map in this section:
|
||||
# * `follow-hint`: Follow the currently selected hint.
|
||||
|
||||
follow-hint
|
||||
<return>
|
||||
<ctrl-m>
|
||||
<ctrl-j>
|
||||
<shift-return>
|
||||
<enter>
|
||||
<shift-enter>
|
||||
|
||||
hint --rapid links tab-bg
|
||||
<ctrl-r>
|
||||
|
||||
hint links
|
||||
<ctrl-f>
|
||||
|
||||
hint all tab-bg
|
||||
<ctrl-b>
|
||||
|
||||
[command]
|
||||
# Keybindings for command mode.
|
||||
# Since normal keypresses are passed through, only special keys are
|
||||
# supported in this mode.
|
||||
# Useful hidden commands to map in this section:
|
||||
# * `command-history-prev`: Switch to previous command in history.
|
||||
# * `command-history-next`: Switch to next command in history.
|
||||
# * `completion-item-focus`: Select another item in completion.
|
||||
# * `command-accept`: Execute the command currently in the commandline.
|
||||
|
||||
command-history-prev
|
||||
<ctrl-p>
|
||||
|
||||
command-history-next
|
||||
<ctrl-n>
|
||||
|
||||
completion-item-focus prev
|
||||
<shift-tab>
|
||||
<up>
|
||||
|
||||
completion-item-focus next
|
||||
<tab>
|
||||
<down>
|
||||
|
||||
completion-item-del
|
||||
<ctrl-d>
|
||||
|
||||
command-accept
|
||||
<return>
|
||||
<ctrl-m>
|
||||
<ctrl-j>
|
||||
<shift-return>
|
||||
<enter>
|
||||
<shift-enter>
|
||||
|
||||
completion-item-focus next-category
|
||||
<ctrl-tab>
|
||||
|
||||
completion-item-focus prev-category
|
||||
<ctrl-shift-tab>
|
||||
|
||||
[prompt]
|
||||
# Keybindings for prompts in the status line.
|
||||
# You can bind normal keys in this mode, but they will be only active
|
||||
# when a yes/no-prompt is asked. For other prompt modes, you can only
|
||||
# bind special keys.
|
||||
# Useful hidden commands to map in this section:
|
||||
# * `prompt-accept`: Confirm the entered value.
|
||||
# * `prompt-accept yes`: Answer yes to a yes/no question.
|
||||
# * `prompt-accept no`: Answer no to a yes/no question.
|
||||
|
||||
prompt-accept
|
||||
<return>
|
||||
<ctrl-m>
|
||||
<ctrl-j>
|
||||
<shift-return>
|
||||
<enter>
|
||||
<shift-enter>
|
||||
|
||||
prompt-accept yes
|
||||
y
|
||||
|
||||
prompt-accept no
|
||||
n
|
||||
|
||||
prompt-open-download
|
||||
<ctrl-x>
|
||||
|
||||
prompt-item-focus prev
|
||||
<shift-tab>
|
||||
<up>
|
||||
|
||||
prompt-item-focus next
|
||||
<tab>
|
||||
<down>
|
||||
|
||||
[command,prompt]
|
||||
|
||||
rl-backward-char
|
||||
<ctrl-b>
|
||||
|
||||
rl-forward-char
|
||||
<ctrl-f>
|
||||
|
||||
rl-backward-word
|
||||
<alt-b>
|
||||
|
||||
rl-forward-word
|
||||
<alt-f>
|
||||
|
||||
rl-beginning-of-line
|
||||
<ctrl-a>
|
||||
|
||||
rl-end-of-line
|
||||
<ctrl-e>
|
||||
|
||||
rl-unix-line-discard
|
||||
<ctrl-u>
|
||||
|
||||
rl-kill-line
|
||||
<ctrl-k>
|
||||
|
||||
rl-kill-word
|
||||
<alt-d>
|
||||
|
||||
rl-unix-word-rubout
|
||||
<ctrl-w>
|
||||
<alt-backspace>
|
||||
|
||||
rl-yank
|
||||
<ctrl-y>
|
||||
|
||||
rl-delete-char
|
||||
<ctrl-?>
|
||||
|
||||
rl-backward-delete-char
|
||||
<ctrl-h>
|
||||
|
||||
[caret]
|
||||
|
||||
toggle-selection
|
||||
v
|
||||
<space>
|
||||
|
||||
drop-selection
|
||||
<ctrl-space>
|
||||
|
||||
enter-mode normal
|
||||
c
|
||||
|
||||
move-to-next-line
|
||||
j
|
||||
|
||||
move-to-prev-line
|
||||
k
|
||||
|
||||
move-to-next-char
|
||||
l
|
||||
|
||||
move-to-prev-char
|
||||
h
|
||||
|
||||
move-to-end-of-word
|
||||
e
|
||||
|
||||
move-to-next-word
|
||||
w
|
||||
|
||||
move-to-prev-word
|
||||
b
|
||||
|
||||
move-to-start-of-next-block
|
||||
]
|
||||
|
||||
move-to-start-of-prev-block
|
||||
[
|
||||
|
||||
move-to-end-of-next-block
|
||||
}
|
||||
|
||||
move-to-end-of-prev-block
|
||||
{
|
||||
|
||||
move-to-start-of-line
|
||||
0
|
||||
|
||||
move-to-end-of-line
|
||||
$
|
||||
|
||||
move-to-start-of-document
|
||||
gg
|
||||
|
||||
move-to-end-of-document
|
||||
G
|
||||
|
||||
yank selection -s
|
||||
Y
|
||||
|
||||
yank selection
|
||||
y
|
||||
<return>
|
||||
<ctrl-m>
|
||||
<ctrl-j>
|
||||
<shift-return>
|
||||
<enter>
|
||||
<shift-enter>
|
||||
|
||||
scroll left
|
||||
H
|
||||
|
||||
scroll down
|
||||
J
|
||||
|
||||
scroll up
|
||||
K
|
||||
|
||||
scroll right
|
||||
L
|
||||
|
||||
[normal]
|
||||
#Download commands
|
||||
set storage download-directory ~ ;; hint links download
|
||||
;h
|
||||
set storage download-directory ~/Documents ;; hint links download
|
||||
;d
|
||||
set storage download-directory ~/Downloads ;; hint links download
|
||||
;D
|
||||
set storage download-directory ~/Pictures ;; hint links download
|
||||
;p
|
||||
set storage download-directory ~/Videos ;; hint links download
|
||||
;v
|
||||
set storage download-directory ~/Music ;; hint links download
|
||||
;m
|
||||
set storage download-directory ~/Books ;; hint links download
|
||||
;b
|
||||
set storage download-directory ~/.config/Scripts ;; hint links download
|
||||
;s
|
||||
set storage download-directory / ;; hint links download
|
||||
;r
|
||||
set storage download-directory ~/.config ;; hint links download
|
||||
;cf
|
||||
@ -1,702 +0,0 @@
|
||||
# vim: ft=conf
|
||||
#
|
||||
# In this config file, qutebrowser's key bindings are configured.
|
||||
# The format looks like this:
|
||||
#
|
||||
# [keymode]
|
||||
#
|
||||
# command
|
||||
# keychain
|
||||
# keychain2
|
||||
# ...
|
||||
#
|
||||
# All blank lines and lines starting with '#' are ignored.
|
||||
# Inline-comments are not permitted.
|
||||
#
|
||||
# keymode is a comma separated list of modes in which the key binding should be
|
||||
# active. If keymode starts with !, the key binding is active in all modes
|
||||
# except the listed modes.
|
||||
#
|
||||
# For special keys (can't be part of a keychain), enclose them in `<`...`>`.
|
||||
# For modifiers, you can use either `-` or `+` as delimiters, and these names:
|
||||
#
|
||||
# * Control: `Control`, `Ctrl`
|
||||
# * Meta: `Meta`, `Windows`, `Mod4`
|
||||
# * Alt: `Alt`, `Mod1`
|
||||
# * Shift: `Shift`
|
||||
#
|
||||
# For simple keys (no `<>`-signs), a capital letter means the key is pressed
|
||||
# with Shift. For special keys (with `<>`-signs), you need to explicitly add
|
||||
# `Shift-` to match a key pressed with shift.
|
||||
#
|
||||
# Note that default keybindings are always bound, and need to be explicitly
|
||||
# unbound if you wish to remove them:
|
||||
#
|
||||
# <unbound>
|
||||
# keychain
|
||||
# keychain2
|
||||
# ...
|
||||
|
||||
[!normal]
|
||||
|
||||
leave-mode
|
||||
<escape>
|
||||
<ctrl-[>
|
||||
|
||||
[normal]
|
||||
# Keybindings for normal mode.
|
||||
|
||||
spawn youtube-dl -ic {url}
|
||||
ytv
|
||||
|
||||
spawn youtube-dl -xic {url}
|
||||
yta
|
||||
#spawn youtube-dl -xic {url}
|
||||
#;a
|
||||
|
||||
spawn mpv {url}
|
||||
m
|
||||
|
||||
clear-keychain ;; search
|
||||
<escape>
|
||||
|
||||
set-cmd-text -s :open
|
||||
o
|
||||
|
||||
set-cmd-text :open {url:pretty}
|
||||
go
|
||||
|
||||
set-cmd-text -s :open -t
|
||||
O
|
||||
|
||||
set-cmd-text :open -t {url:pretty}
|
||||
gO
|
||||
|
||||
set-cmd-text -s :open -b
|
||||
xo
|
||||
|
||||
set-cmd-text :open -b {url:pretty}
|
||||
xO
|
||||
|
||||
set-cmd-text -s :open -w
|
||||
wo
|
||||
|
||||
set-cmd-text :open -w {url:pretty}
|
||||
wO
|
||||
|
||||
open -t
|
||||
ga
|
||||
<ctrl-t>
|
||||
|
||||
open -w
|
||||
<ctrl-n>
|
||||
|
||||
tab-close
|
||||
<ctrl-w>
|
||||
|
||||
tab-close -o
|
||||
D
|
||||
|
||||
tab-only
|
||||
co
|
||||
|
||||
tab-focus
|
||||
J
|
||||
<ctrl-pgdown>
|
||||
|
||||
tab-move
|
||||
gm
|
||||
|
||||
tab-move -
|
||||
gl
|
||||
|
||||
tab-move +
|
||||
gr
|
||||
|
||||
tab-prev
|
||||
K
|
||||
<ctrl-pgup>
|
||||
|
||||
tab-clone
|
||||
gC
|
||||
|
||||
reload
|
||||
r
|
||||
<f5>
|
||||
|
||||
reload -f
|
||||
R
|
||||
<ctrl-f5>
|
||||
|
||||
back
|
||||
H
|
||||
|
||||
back -t
|
||||
th
|
||||
|
||||
back -w
|
||||
wh
|
||||
|
||||
forward
|
||||
L
|
||||
|
||||
forward -t
|
||||
tl
|
||||
|
||||
forward -w
|
||||
wl
|
||||
|
||||
fullscreen
|
||||
<f11>
|
||||
|
||||
hint
|
||||
f
|
||||
|
||||
hint all tab
|
||||
F
|
||||
|
||||
hint all window
|
||||
wf
|
||||
|
||||
#hint all tab-bg
|
||||
#;b
|
||||
|
||||
#hint all tab-fg
|
||||
#;f
|
||||
|
||||
hint images
|
||||
;i
|
||||
|
||||
hint images tab
|
||||
;I
|
||||
|
||||
hint images tab-bg
|
||||
.i
|
||||
|
||||
#hint links fill :open {hint-url}
|
||||
#;o
|
||||
|
||||
hint links fill :open -t {hint-url}
|
||||
;O
|
||||
|
||||
hint links fill :open -b {hint-url}
|
||||
.o
|
||||
|
||||
#hint links yank
|
||||
#;y
|
||||
|
||||
hint links yank-primary
|
||||
;Y
|
||||
|
||||
hint --rapid links tab-bg
|
||||
;R
|
||||
|
||||
#hint --rapid links window
|
||||
#;R
|
||||
|
||||
#hint links download
|
||||
#;d
|
||||
hint links spawn mpv --loop {hint-url}
|
||||
;v
|
||||
|
||||
hint links spawn transmission-remote -a {hint-url}
|
||||
gt
|
||||
|
||||
scroll left
|
||||
h
|
||||
|
||||
scroll down
|
||||
j
|
||||
|
||||
scroll up
|
||||
k
|
||||
|
||||
scroll right
|
||||
l
|
||||
|
||||
undo
|
||||
U
|
||||
<ctrl-shift-t>
|
||||
|
||||
scroll-perc 0
|
||||
gg
|
||||
|
||||
scroll-perc
|
||||
G
|
||||
|
||||
search-next
|
||||
n
|
||||
|
||||
search-prev
|
||||
N
|
||||
|
||||
enter-mode insert
|
||||
i
|
||||
|
||||
enter-mode caret
|
||||
v
|
||||
|
||||
enter-mode set_mark
|
||||
`
|
||||
|
||||
enter-mode jump_mark
|
||||
'
|
||||
|
||||
yank
|
||||
yy
|
||||
|
||||
yank -s
|
||||
yY
|
||||
|
||||
yank title -s
|
||||
yT
|
||||
|
||||
yank domain
|
||||
yd
|
||||
|
||||
yank domain -s
|
||||
yD
|
||||
|
||||
yank pretty-url
|
||||
yp
|
||||
|
||||
yank pretty-url -s
|
||||
yP
|
||||
|
||||
open -- {clipboard}
|
||||
pp
|
||||
|
||||
open -- {primary}
|
||||
pP
|
||||
|
||||
open -t -- {clipboard}
|
||||
Pp
|
||||
|
||||
open -t -- {primary}
|
||||
PP
|
||||
|
||||
open -w -- {clipboard}
|
||||
wp
|
||||
|
||||
open -w -- {primary}
|
||||
wP
|
||||
|
||||
set-cmd-text -s :quickmark-load
|
||||
b
|
||||
|
||||
set-cmd-text -s :quickmark-load -t
|
||||
B
|
||||
|
||||
set-cmd-text -s :quickmark-load -w
|
||||
wb
|
||||
|
||||
bookmark-add
|
||||
M
|
||||
|
||||
set-cmd-text -s :bookmark-load
|
||||
gb
|
||||
|
||||
set-cmd-text -s :bookmark-load -t
|
||||
gB
|
||||
|
||||
set-cmd-text -s :bookmark-load -w
|
||||
wB
|
||||
|
||||
save
|
||||
sf
|
||||
|
||||
set-cmd-text -s :set
|
||||
ss
|
||||
|
||||
set-cmd-text -s :set -t
|
||||
sl
|
||||
|
||||
set-cmd-text -s :bind
|
||||
sk
|
||||
|
||||
zoom-out
|
||||
-
|
||||
|
||||
zoom-in
|
||||
+
|
||||
|
||||
zoom
|
||||
=
|
||||
|
||||
navigate prev
|
||||
[[
|
||||
|
||||
navigate next
|
||||
]]
|
||||
|
||||
navigate prev -t
|
||||
{{
|
||||
|
||||
navigate next -t
|
||||
}}
|
||||
|
||||
navigate up
|
||||
gu
|
||||
|
||||
navigate up -t
|
||||
gU
|
||||
|
||||
navigate increment
|
||||
<ctrl-a>
|
||||
|
||||
navigate decrement
|
||||
<ctrl-x>
|
||||
|
||||
inspector
|
||||
wi
|
||||
|
||||
set storage download-directory ~/Downloads ;; download
|
||||
gd
|
||||
|
||||
download-cancel
|
||||
ad
|
||||
|
||||
download-clear
|
||||
cd
|
||||
|
||||
view-source
|
||||
gf
|
||||
|
||||
#set-cmd-text -s :buffer
|
||||
#gt
|
||||
|
||||
|
||||
tab-focus last
|
||||
<ctrl-tab>
|
||||
|
||||
enter-mode passthrough
|
||||
<ctrl-v>
|
||||
|
||||
quit
|
||||
<ctrl-q>
|
||||
|
||||
scroll-page 0 1
|
||||
<ctrl-f>
|
||||
|
||||
scroll-page 0 -1
|
||||
<ctrl-b>
|
||||
|
||||
scroll-page 0 0.5
|
||||
<ctrl-d>
|
||||
d
|
||||
|
||||
scroll-page 0 -0.5
|
||||
<ctrl-u>
|
||||
u
|
||||
|
||||
tab-focus 1
|
||||
<alt-1>
|
||||
|
||||
tab-focus 2
|
||||
<alt-2>
|
||||
|
||||
tab-focus 3
|
||||
<alt-3>
|
||||
|
||||
tab-focus 4
|
||||
<alt-4>
|
||||
|
||||
tab-focus 5
|
||||
<alt-5>
|
||||
|
||||
tab-focus 6
|
||||
<alt-6>
|
||||
|
||||
tab-focus 7
|
||||
<alt-7>
|
||||
|
||||
tab-focus 8
|
||||
<alt-8>
|
||||
|
||||
tab-focus 9
|
||||
<alt-9>
|
||||
|
||||
home
|
||||
<ctrl-h>
|
||||
|
||||
stop
|
||||
<ctrl-s>
|
||||
|
||||
print
|
||||
<ctrl-alt-p>
|
||||
|
||||
open qute:settings
|
||||
Ss
|
||||
|
||||
follow-selected
|
||||
<return>
|
||||
<ctrl-m>
|
||||
<ctrl-j>
|
||||
<shift-return>
|
||||
<enter>
|
||||
<shift-enter>
|
||||
|
||||
follow-selected -t
|
||||
<ctrl-return>
|
||||
<ctrl-enter>
|
||||
|
||||
#hint inputs
|
||||
#;p
|
||||
|
||||
repeat-command
|
||||
.
|
||||
|
||||
set-cmd-text /
|
||||
/
|
||||
|
||||
set-cmd-text ?
|
||||
?
|
||||
|
||||
set-cmd-text :
|
||||
:
|
||||
|
||||
record-macro
|
||||
q
|
||||
|
||||
run-macro
|
||||
@
|
||||
|
||||
[insert]
|
||||
# Keybindings for insert mode.
|
||||
# Since normal keypresses are passed through, only special keys are
|
||||
# supported in this mode.
|
||||
# Useful hidden commands to map in this section:
|
||||
# * `open-editor`: Open a texteditor with the focused field.
|
||||
# * `paste-primary`: Paste primary selection at cursor position.
|
||||
|
||||
open-editor
|
||||
<ctrl-e>
|
||||
|
||||
insert-text {primary}
|
||||
<shift-ins>
|
||||
|
||||
[hint]
|
||||
# Keybindings for hint mode.
|
||||
# Since normal keypresses are passed through, only special keys are
|
||||
# supported in this mode.
|
||||
# Useful hidden commands to map in this section:
|
||||
# * `follow-hint`: Follow the currently selected hint.
|
||||
|
||||
follow-hint
|
||||
<return>
|
||||
<ctrl-m>
|
||||
<ctrl-j>
|
||||
<shift-return>
|
||||
<enter>
|
||||
<shift-enter>
|
||||
|
||||
hint --rapid links tab-bg
|
||||
<ctrl-r>
|
||||
|
||||
hint links
|
||||
<ctrl-f>
|
||||
|
||||
hint all tab-bg
|
||||
<ctrl-b>
|
||||
|
||||
[command]
|
||||
# Keybindings for command mode.
|
||||
# Since normal keypresses are passed through, only special keys are
|
||||
# supported in this mode.
|
||||
# Useful hidden commands to map in this section:
|
||||
# * `command-history-prev`: Switch to previous command in history.
|
||||
# * `command-history-next`: Switch to next command in history.
|
||||
# * `completion-item-focus`: Select another item in completion.
|
||||
# * `command-accept`: Execute the command currently in the commandline.
|
||||
|
||||
command-history-prev
|
||||
<ctrl-p>
|
||||
|
||||
command-history-next
|
||||
<ctrl-n>
|
||||
|
||||
completion-item-focus prev
|
||||
<shift-tab>
|
||||
<up>
|
||||
|
||||
completion-item-focus next
|
||||
<tab>
|
||||
<down>
|
||||
|
||||
completion-item-del
|
||||
<ctrl-d>
|
||||
|
||||
command-accept
|
||||
<return>
|
||||
<ctrl-m>
|
||||
<ctrl-j>
|
||||
<shift-return>
|
||||
<enter>
|
||||
<shift-enter>
|
||||
|
||||
completion-item-focus next-category
|
||||
<ctrl-tab>
|
||||
|
||||
completion-item-focus prev-category
|
||||
<ctrl-shift-tab>
|
||||
|
||||
[prompt]
|
||||
# Keybindings for prompts in the status line.
|
||||
# You can bind normal keys in this mode, but they will be only active
|
||||
# when a yes/no-prompt is asked. For other prompt modes, you can only
|
||||
# bind special keys.
|
||||
# Useful hidden commands to map in this section:
|
||||
# * `prompt-accept`: Confirm the entered value.
|
||||
# * `prompt-accept yes`: Answer yes to a yes/no question.
|
||||
# * `prompt-accept no`: Answer no to a yes/no question.
|
||||
|
||||
prompt-accept
|
||||
<return>
|
||||
<ctrl-m>
|
||||
<ctrl-j>
|
||||
<shift-return>
|
||||
<enter>
|
||||
<shift-enter>
|
||||
|
||||
prompt-accept yes
|
||||
y
|
||||
|
||||
prompt-accept no
|
||||
n
|
||||
|
||||
prompt-open-download
|
||||
<ctrl-x>
|
||||
|
||||
prompt-item-focus prev
|
||||
<shift-tab>
|
||||
<up>
|
||||
|
||||
prompt-item-focus next
|
||||
<tab>
|
||||
<down>
|
||||
|
||||
[command,prompt]
|
||||
|
||||
rl-backward-char
|
||||
<ctrl-b>
|
||||
|
||||
rl-forward-char
|
||||
<ctrl-f>
|
||||
|
||||
rl-backward-word
|
||||
<alt-b>
|
||||
|
||||
rl-forward-word
|
||||
<alt-f>
|
||||
|
||||
rl-beginning-of-line
|
||||
<ctrl-a>
|
||||
|
||||
rl-end-of-line
|
||||
<ctrl-e>
|
||||
|
||||
rl-unix-line-discard
|
||||
<ctrl-u>
|
||||
|
||||
rl-kill-line
|
||||
<ctrl-k>
|
||||
|
||||
rl-kill-word
|
||||
<alt-d>
|
||||
|
||||
rl-unix-word-rubout
|
||||
<ctrl-w>
|
||||
<alt-backspace>
|
||||
|
||||
rl-yank
|
||||
<ctrl-y>
|
||||
|
||||
rl-delete-char
|
||||
<ctrl-?>
|
||||
|
||||
rl-backward-delete-char
|
||||
<ctrl-h>
|
||||
|
||||
[caret]
|
||||
|
||||
toggle-selection
|
||||
v
|
||||
<space>
|
||||
|
||||
drop-selection
|
||||
<ctrl-space>
|
||||
|
||||
enter-mode normal
|
||||
c
|
||||
|
||||
move-to-next-line
|
||||
j
|
||||
|
||||
move-to-prev-line
|
||||
k
|
||||
|
||||
move-to-next-char
|
||||
l
|
||||
|
||||
move-to-prev-char
|
||||
h
|
||||
|
||||
move-to-end-of-word
|
||||
e
|
||||
|
||||
move-to-next-word
|
||||
w
|
||||
|
||||
move-to-prev-word
|
||||
b
|
||||
|
||||
move-to-start-of-next-block
|
||||
]
|
||||
|
||||
move-to-start-of-prev-block
|
||||
[
|
||||
|
||||
move-to-end-of-next-block
|
||||
}
|
||||
|
||||
move-to-end-of-prev-block
|
||||
{
|
||||
|
||||
move-to-start-of-line
|
||||
0
|
||||
|
||||
move-to-end-of-line
|
||||
$
|
||||
|
||||
move-to-start-of-document
|
||||
gg
|
||||
|
||||
move-to-end-of-document
|
||||
G
|
||||
|
||||
yank selection -s
|
||||
Y
|
||||
|
||||
yank selection
|
||||
y
|
||||
<return>
|
||||
<ctrl-m>
|
||||
<ctrl-j>
|
||||
<shift-return>
|
||||
<enter>
|
||||
<shift-enter>
|
||||
|
||||
scroll left
|
||||
H
|
||||
|
||||
scroll down
|
||||
J
|
||||
|
||||
scroll up
|
||||
K
|
||||
|
||||
scroll right
|
||||
L
|
||||
|
||||
[normal]
|
||||
#Download commands
|
||||
File diff suppressed because it is too large
Load Diff
@ -522,66 +522,6 @@ map yta console shell youtube-dl -xic%space
|
||||
map sup shell ~/.config/Scripts/webupdate
|
||||
map ss shell rsync -avrP --rsh='ssh -p2222' %s lukesmith@lukesmith.xyz:/home1/lukesmith/public_html
|
||||
map slt shell rsync -avrP --rsh='ssh -p2222' %s lukesmith@lukesmith.xyz:/home1/lukesmith/public_html/longterm
|
||||
map gh cd ~
|
||||
map th tab_new ~
|
||||
map mh shell mv %s ~
|
||||
map Yh shell cp -r %s ~
|
||||
map gd cd ~/Documents
|
||||
map td tab_new ~/Documents
|
||||
map md shell mv %s ~/Documents
|
||||
map Yd shell cp -r %s ~/Documents
|
||||
map gD cd ~/Downloads
|
||||
map tD tab_new ~/Downloads
|
||||
map mD shell mv %s ~/Downloads
|
||||
map YD shell cp -r %s ~/Downloads
|
||||
map gp cd ~/Pictures
|
||||
map tp tab_new ~/Pictures
|
||||
map mp shell mv %s ~/Pictures
|
||||
map Yp shell cp -r %s ~/Pictures
|
||||
map gv cd ~/Videos
|
||||
map tv tab_new ~/Videos
|
||||
map mv shell mv %s ~/Videos
|
||||
map Yv shell cp -r %s ~/Videos
|
||||
map gm cd ~/Music
|
||||
map tm tab_new ~/Music
|
||||
map mm shell mv %s ~/Music
|
||||
map Ym shell cp -r %s ~/Music
|
||||
map gb cd ~/Books
|
||||
map tb tab_new ~/Books
|
||||
map mb shell mv %s ~/Books
|
||||
map Yb shell cp -r %s ~/Books
|
||||
map gs cd ~/.config/Scripts
|
||||
map ts tab_new ~/.config/Scripts
|
||||
map ms shell mv %s ~/.config/Scripts
|
||||
map Ys shell cp -r %s ~/.config/Scripts
|
||||
map gr cd /
|
||||
map tr tab_new /
|
||||
map mr shell mv %s /
|
||||
map Yr shell cp -r %s /
|
||||
map gcf cd ~/.config
|
||||
map tcf tab_new ~/.config
|
||||
map mcf shell mv %s ~/.config
|
||||
map Ycf shell cp -r %s ~/.config
|
||||
map cfb shell vim ~/.config/Scripts/bashrc
|
||||
map cfz shell vim ~/.zshrc
|
||||
map cfv shell vim ~/.config/Scripts/vimrc
|
||||
map cfr shell vim ~/.config/ranger/rc.conf.base
|
||||
map cfi shell vim ~/.config/i3/config
|
||||
map cfq shell vim ~/.config/qutebrowser/keys.conf.base
|
||||
map cfQ shell vim ~/.config/qutebrowser/qutebrowser.conf
|
||||
map cfm shell vim ~/.config/mutt/muttrc
|
||||
map cfM shell vim ~/.config/moc/keymap
|
||||
map cff shell vim ~/.config/Scripts/folders
|
||||
map cfc shell vim ~/.config/Scripts/configs
|
||||
map cft shell vim ~/.config/termite/config
|
||||
map cfT shell vim ~/.config/Scripts/tmux.conf
|
||||
map eb shell vim ~/Documents/LaTeX/uni.bib
|
||||
map cv shell vim ~/Documents/LaTeX/cv.tex
|
||||
map cfl shell vim ~/.config/mutt/lukexyz.info
|
||||
map cfx shell vim ~/.config/mutt/luxmyth.info
|
||||
map cfk shell vim ~/.config/mutt/kulade.cock
|
||||
map cfo shell vim ~/.config/mutt/kulade.info
|
||||
map cfa shell vim ~/.config/mutt/aliases
|
||||
map cfp shell vim ~/.config/polybar/config
|
||||
map cfd shell vim ~/.Xdefaults
|
||||
map TO shell vim ~/Creations/Videos/todo.md
|
||||
|
||||
# DO NOT DELETE LMAO
|
||||
# DO NOT DELETE LMAO
|
||||
|
||||
@ -1,524 +0,0 @@
|
||||
###SETTINGS###
|
||||
set column_ratios 1,3,4
|
||||
#set hidden_filter ^\.|\.(?:pyc|pyo|bak|swp)$|^lost\+found$|^__(py)?cache__$
|
||||
set hidden_filter ^\.|\.(?:pyc|vrb|pyo|bak|swp|aux|log|nav|out|snm|toc|bcf|run\.xml|synctex\.gz|blg|bbl)$|^lost\+found$|^__(py)?cache__$
|
||||
set show_hidden false
|
||||
set confirm_on_delete multiple
|
||||
set preview_script ~/.config/ranger/scope.sh
|
||||
set use_preview_script true
|
||||
set automatically_count_files true
|
||||
set open_all_images true
|
||||
set vcs_aware false
|
||||
set vcs_backend_git enabled
|
||||
set vcs_backend_hg disabled
|
||||
set vcs_backend_bzr disabled
|
||||
set preview_images true
|
||||
set preview_images_method w3m
|
||||
set unicode_ellipsis false
|
||||
set show_hidden_bookmarks false
|
||||
set colorscheme default
|
||||
set preview_files true
|
||||
set preview_directories true
|
||||
set collapse_preview true
|
||||
set save_console_history false
|
||||
set status_bar_on_top false
|
||||
set draw_progress_bar_in_status_bar true
|
||||
set draw_borders false
|
||||
set dirname_in_tabs false
|
||||
set mouse_enabled true
|
||||
set display_size_in_main_column true
|
||||
set display_size_in_status_bar true
|
||||
set display_tags_in_all_columns true
|
||||
set update_title false
|
||||
set update_tmux_title true
|
||||
set shorten_title 3
|
||||
set tilde_in_titlebar true
|
||||
set max_history_size 20
|
||||
set max_console_history_size 50
|
||||
set scroll_offset 8
|
||||
set flushinput true
|
||||
set padding_right true
|
||||
set autosave_bookmarks false
|
||||
set autoupdate_cumulative_size false
|
||||
set show_cursor false
|
||||
set sort natural
|
||||
set sort_reverse false
|
||||
set sort_case_insensitive true
|
||||
set sort_directories_first true
|
||||
set sort_unicode false
|
||||
set xterm_alt_key false
|
||||
set cd_bookmarks false
|
||||
set preview_max_size 0
|
||||
set show_selection_in_titlebar true
|
||||
set idle_delay 2000
|
||||
set metadata_deep_search false
|
||||
|
||||
|
||||
###ALIASES###
|
||||
alias e edit
|
||||
alias q quit
|
||||
alias q! quitall
|
||||
alias qa quitall
|
||||
alias qall quitall
|
||||
alias setl setlocal
|
||||
|
||||
alias filter scout -prt
|
||||
alias find scout -aeit
|
||||
alias mark scout -mr
|
||||
alias unmark scout -Mr
|
||||
alias search scout -rs
|
||||
alias search_inc scout -rts
|
||||
alias travel scout -aefiklst
|
||||
|
||||
|
||||
###BASIC KEYS###
|
||||
|
||||
#BASIC
|
||||
map Q quit!
|
||||
map q quit
|
||||
copymap q ZZ ZQ
|
||||
|
||||
map R reload_cwd
|
||||
map <C-r> reset
|
||||
#map <C-l> redraw_window
|
||||
map <C-c> abort
|
||||
map <esc> change_mode normal
|
||||
|
||||
map i display_file
|
||||
map ? help
|
||||
#map W display_log
|
||||
map w taskview_open
|
||||
map S shell $SHELL
|
||||
|
||||
map : console
|
||||
map ; console
|
||||
map ! console shell%space
|
||||
map @ console -p6 shell %s
|
||||
map # console shell -p%space
|
||||
#map s console shell%space
|
||||
map r chain draw_possible_programs; console open_with%space
|
||||
map f console find%space
|
||||
map cd console cd%space
|
||||
|
||||
|
||||
# Change the line mode
|
||||
#map Mf linemode filename
|
||||
#map Mi linemode fileinfo
|
||||
#map Mp linemode permissions
|
||||
#map Mt linemode metatitle
|
||||
|
||||
#moc
|
||||
#map Mc shell mocp -c
|
||||
#map Ma shell mocp -a %s
|
||||
#map Ms shell mocp -p
|
||||
#map MS shell mocp -S
|
||||
#map Mp shell mocp -G
|
||||
#map Mn shell mocp -f
|
||||
#map Mb shell mocp -r
|
||||
#map MN shell mocp -s && mocp -c && mocp -a %s && mocp -p
|
||||
#map Mo shell mocp -j 0%%
|
||||
#map MK shell killall mocp
|
||||
|
||||
|
||||
|
||||
# Tagging / Marking
|
||||
map at tag_toggle
|
||||
map ut tag_remove
|
||||
map "<any> tag_toggle tag=%any
|
||||
map <Space> mark_files toggle=True
|
||||
map va mark_files all=True toggle=True
|
||||
map uv mark_files all=True val=False
|
||||
map vs toggle_visual_mode
|
||||
map uV toggle_visual_mode reverse=True
|
||||
|
||||
|
||||
|
||||
# For the nostalgics: Midnight Commander bindings
|
||||
map <F1> help
|
||||
map <F3> display_file
|
||||
map <F4> edit
|
||||
map <F5> copy
|
||||
map <F6> cut
|
||||
map <F7> console mkdir%space
|
||||
map <F8> console delete
|
||||
map <F10> exit
|
||||
|
||||
|
||||
# In case you work on a keyboard with dvorak layout
|
||||
map <UP> move up=1
|
||||
map <DOWN> move down=1
|
||||
map <LEFT> move left=1
|
||||
map <RIGHT> move right=1
|
||||
map <HOME> move to=0
|
||||
map <END> move to=-1
|
||||
map <PAGEDOWN> move down=1 pages=True
|
||||
map <PAGEUP> move up=1 pages=True
|
||||
map <CR> move right=1
|
||||
map <DELETE> console delete
|
||||
map <INSERT> console touch%space
|
||||
|
||||
|
||||
# VIM-like
|
||||
copymap <UP> k
|
||||
copymap <DOWN> j
|
||||
copymap <LEFT> h
|
||||
copymap <RIGHT> l
|
||||
copymap <HOME> gg
|
||||
copymap <END> G
|
||||
copymap <PAGEDOWN> <C-F>
|
||||
copymap <PAGEUP> <C-B>
|
||||
|
||||
map J move down=0.5 pages=True
|
||||
map K move up=0.5 pages=True
|
||||
copymap J <C-D>
|
||||
copymap K <C-U>
|
||||
|
||||
|
||||
# Jumping around
|
||||
map H history_go -1
|
||||
map L history_go 1
|
||||
map ] move_parent 1
|
||||
map [ move_parent -1
|
||||
map } traverse
|
||||
|
||||
#DEFAULT MOVEMENT
|
||||
map ge cd /etc
|
||||
map gu cd /usr
|
||||
#map gl cd -r .
|
||||
map gL cd -r %f
|
||||
#map gv cd /var
|
||||
map gM cd /mnt
|
||||
map gr cd /
|
||||
map gR eval fm.cd(ranger.RANGERDIR)
|
||||
map g? cd /usr/share/doc/ranger
|
||||
|
||||
# Tabs
|
||||
map <C-n> tab_new ~
|
||||
map <C-w> tab_close
|
||||
map <TAB> tab_move 1
|
||||
map <S-TAB> tab_move -1
|
||||
map <A-Right> tab_move 1
|
||||
map <A-Left> tab_move -1
|
||||
#map gt tab_move 1
|
||||
#map gT tab_move -1
|
||||
map gn tab_new ~
|
||||
#map gc tab_close
|
||||
map tt tab_close
|
||||
map uq tab_restore
|
||||
map <a-1> tab_open 1
|
||||
map <a-2> tab_open 2
|
||||
map <a-3> tab_open 3
|
||||
map <a-4> tab_open 4
|
||||
map <a-5> tab_open 5
|
||||
map <a-6> tab_open 6
|
||||
map <a-7> tab_open 7
|
||||
map <a-8> tab_open 8
|
||||
map <a-9> tab_open 9
|
||||
|
||||
|
||||
# External Programs
|
||||
map E edit
|
||||
map du shell -p du --max-depth=1 -h --apparent-size
|
||||
map dU shell -p du --max-depth=1 -h --apparent-size | sort -rh
|
||||
map yp shell -f echo -n %%d/%%f | xsel -i; xsel -o | xsel -i -b
|
||||
map yd shell -f echo -n %%d | xsel -i; xsel -o | xsel -i -b
|
||||
map yn shell -f echo -n %%f | xsel -i; xsel -o | xsel -i -b
|
||||
|
||||
|
||||
# Filesystem Operations
|
||||
map = chmod
|
||||
map cw console rename%space
|
||||
map aa rename_append
|
||||
map A eval fm.open_console('rename ' + fm.thisfile.relative_path)
|
||||
map I eval fm.open_console('rename ' + fm.thisfile.relative_path, position=7)
|
||||
map pp paste
|
||||
map po paste overwrite=True
|
||||
map pP paste append=True
|
||||
map pO paste overwrite=True append=True
|
||||
map pl paste_symlink relative=False
|
||||
map pL paste_symlink relative=True
|
||||
map phl paste_hardlink
|
||||
map pht paste_hardlinked_subtree
|
||||
|
||||
map dD console delete
|
||||
|
||||
map dd cut
|
||||
map ud uncut
|
||||
map da cut mode=add
|
||||
map dr cut mode=remove
|
||||
|
||||
map yy copy
|
||||
map uy uncut
|
||||
map ya copy mode=add
|
||||
map yr copy mode=remove
|
||||
|
||||
|
||||
# Temporary workarounds
|
||||
map dgg eval fm.cut(dirarg=dict(to=0), narg=quantifier)
|
||||
map dG eval fm.cut(dirarg=dict(to=-1), narg=quantifier)
|
||||
map dj eval fm.cut(dirarg=dict(down=1), narg=quantifier)
|
||||
map dk eval fm.cut(dirarg=dict(up=1), narg=quantifier)
|
||||
map ygg eval fm.copy(dirarg=dict(to=0), narg=quantifier)
|
||||
map yG eval fm.copy(dirarg=dict(to=-1), narg=quantifier)
|
||||
map yj eval fm.copy(dirarg=dict(down=1), narg=quantifier)
|
||||
map yk eval fm.copy(dirarg=dict(up=1), narg=quantifier)
|
||||
|
||||
|
||||
# Searching
|
||||
map / console search%space
|
||||
map n search_next
|
||||
map N search_next forward=False
|
||||
map ct search_next order=tag
|
||||
map cs search_next order=size
|
||||
map ci search_next order=mimetype
|
||||
map cc search_next order=ctime
|
||||
map cm search_next order=mtime
|
||||
map ca search_next order=atime
|
||||
|
||||
|
||||
# Sorting
|
||||
map or toggle_option sort_reverse
|
||||
map oz set sort=random
|
||||
map os chain set sort=size; set sort_reverse=False
|
||||
map ob chain set sort=basename; set sort_reverse=False
|
||||
map on chain set sort=natural; set sort_reverse=False
|
||||
map om chain set sort=mtime; set sort_reverse=False
|
||||
map oc chain set sort=ctime; set sort_reverse=False
|
||||
map oa chain set sort=atime; set sort_reverse=False
|
||||
map ot chain set sort=type; set sort_reverse=False
|
||||
map oe chain set sort=extension; set sort_reverse=False
|
||||
|
||||
map oS chain set sort=size; set sort_reverse=True
|
||||
map oB chain set sort=basename; set sort_reverse=True
|
||||
map oN chain set sort=natural; set sort_reverse=True
|
||||
map oM chain set sort=mtime; set sort_reverse=True
|
||||
map oC chain set sort=ctime; set sort_reverse=True
|
||||
map oA chain set sort=atime; set sort_reverse=True
|
||||
map oT chain set sort=type; set sort_reverse=True
|
||||
map oE chain set sort=extension; set sort_reverse=True
|
||||
|
||||
map dc get_cumulative_size
|
||||
|
||||
|
||||
# Settings
|
||||
map zc toggle_option collapse_preview
|
||||
map zd toggle_option sort_directories_first
|
||||
map zh toggle_option show_hidden
|
||||
map <C-h> toggle_option show_hidden
|
||||
map zi toggle_option flushinput
|
||||
map zm toggle_option mouse_enabled
|
||||
map zp toggle_option preview_files
|
||||
map zP toggle_option preview_directories
|
||||
map zs toggle_option sort_case_insensitive
|
||||
map zu toggle_option autoupdate_cumulative_size
|
||||
map zv toggle_option use_preview_script
|
||||
map zf console filter%space
|
||||
|
||||
|
||||
# Bookmarks
|
||||
#map `<any> enter_bookmark %any
|
||||
#map '<any> enter_bookmark %any
|
||||
#map mm<any> set_bookmark %any
|
||||
#map um<any> unset_bookmark %any
|
||||
|
||||
#map m<bg> draw_bookmarks
|
||||
#copymap m<bg> um<bg> `<bg> '<bg>
|
||||
|
||||
|
||||
# Generate all the chmod bindings with some python help:
|
||||
eval for arg in "rwxXst": cmd("map +u{0} shell -f chmod u+{0} %s".format(arg))
|
||||
eval for arg in "rwxXst": cmd("map +g{0} shell -f chmod g+{0} %s".format(arg))
|
||||
eval for arg in "rwxXst": cmd("map +o{0} shell -f chmod o+{0} %s".format(arg))
|
||||
eval for arg in "rwxXst": cmd("map +a{0} shell -f chmod a+{0} %s".format(arg))
|
||||
eval for arg in "rwxXst": cmd("map +{0} shell -f chmod u+{0} %s".format(arg))
|
||||
|
||||
eval for arg in "rwxXst": cmd("map -u{0} shell -f chmod u-{0} %s".format(arg))
|
||||
eval for arg in "rwxXst": cmd("map -g{0} shell -f chmod g-{0} %s".format(arg))
|
||||
eval for arg in "rwxXst": cmd("map -o{0} shell -f chmod o-{0} %s".format(arg))
|
||||
eval for arg in "rwxXst": cmd("map -a{0} shell -f chmod a-{0} %s".format(arg))
|
||||
eval for arg in "rwxXst": cmd("map -{0} shell -f chmod u-{0} %s".format(arg))
|
||||
|
||||
|
||||
###CONSOLE KEYS###
|
||||
# Basic
|
||||
cmap <tab> eval fm.ui.console.tab()
|
||||
cmap <s-tab> eval fm.ui.console.tab(-1)
|
||||
cmap <ESC> eval fm.ui.console.close()
|
||||
cmap <CR> eval fm.ui.console.execute()
|
||||
#cmap <C-l> redraw_window
|
||||
|
||||
copycmap <ESC> <C-c>
|
||||
copycmap <CR> <C-j>
|
||||
|
||||
|
||||
# Move around
|
||||
cmap <up> eval fm.ui.console.history_move(-1)
|
||||
cmap <down> eval fm.ui.console.history_move(1)
|
||||
cmap <left> eval fm.ui.console.move(left=1)
|
||||
cmap <right> eval fm.ui.console.move(right=1)
|
||||
cmap <home> eval fm.ui.console.move(right=0, absolute=True)
|
||||
cmap <end> eval fm.ui.console.move(right=-1, absolute=True)
|
||||
|
||||
|
||||
# Line Editing
|
||||
cmap <backspace> eval fm.ui.console.delete(-1)
|
||||
cmap <delete> eval fm.ui.console.delete(0)
|
||||
cmap <C-w> eval fm.ui.console.delete_word()
|
||||
cmap <A-d> eval fm.ui.console.delete_word(backward=False)
|
||||
cmap <C-k> eval fm.ui.console.delete_rest(1)
|
||||
cmap <C-u> eval fm.ui.console.delete_rest(-1)
|
||||
cmap <C-y> eval fm.ui.console.paste()
|
||||
|
||||
# And of course the emacs way
|
||||
#copycmap <up> <C-p>
|
||||
#copycmap <down> <C-n>
|
||||
#copycmap <left> <C-b>
|
||||
#copycmap <right> <C-f>
|
||||
#copycmap <home> <C-a>
|
||||
#copycmap <end> <C-e>
|
||||
#copycmap <delete> <C-d>
|
||||
#copycmap <backspace> <C-h>
|
||||
|
||||
|
||||
# Note: There are multiple ways to express backspaces. <backspace> (code 263)
|
||||
# and <backspace2> (code 127). To be sure, use both.
|
||||
copycmap <backspace> <backspace2>
|
||||
|
||||
# This special expression allows typing in numerals:
|
||||
cmap <allow_quantifiers> false
|
||||
|
||||
|
||||
|
||||
###PAGER KEYS###
|
||||
# Movement
|
||||
pmap <down> pager_move down=1
|
||||
pmap <up> pager_move up=1
|
||||
pmap <left> pager_move left=4
|
||||
pmap <right> pager_move right=4
|
||||
pmap <home> pager_move to=0
|
||||
pmap <end> pager_move to=-1
|
||||
pmap <pagedown> pager_move down=1.0 pages=True
|
||||
pmap <pageup> pager_move up=1.0 pages=True
|
||||
pmap <C-d> pager_move down=0.5 pages=True
|
||||
pmap <C-u> pager_move up=0.5 pages=True
|
||||
|
||||
copypmap <UP> k <C-p>
|
||||
copypmap <DOWN> j <C-n> <CR>
|
||||
copypmap <LEFT> h
|
||||
copypmap <RIGHT> l
|
||||
copypmap <HOME> g
|
||||
copypmap <END> G
|
||||
copypmap <C-d> d
|
||||
copypmap <C-u> u
|
||||
copypmap <PAGEDOWN> n f <C-F> <Space>
|
||||
copypmap <PAGEUP> p b <C-B>
|
||||
|
||||
|
||||
# Basic
|
||||
#pmap <C-l> redraw_window
|
||||
pmap <ESC> pager_close
|
||||
copypmap <ESC> q Q i <F3>
|
||||
pmap E edit_file
|
||||
|
||||
# ===================================================================
|
||||
# == Taskview Keybindings
|
||||
# ===================================================================
|
||||
|
||||
# Movement
|
||||
tmap <up> taskview_move up=1
|
||||
tmap <down> taskview_move down=1
|
||||
tmap <home> taskview_move to=0
|
||||
tmap <end> taskview_move to=-1
|
||||
tmap <pagedown> taskview_move down=1.0 pages=True
|
||||
tmap <pageup> taskview_move up=1.0 pages=True
|
||||
tmap <C-d> taskview_move down=0.5 pages=True
|
||||
tmap <C-u> taskview_move up=0.5 pages=True
|
||||
|
||||
copytmap <UP> k <C-p>
|
||||
copytmap <DOWN> j <C-n> <CR>
|
||||
copytmap <HOME> g
|
||||
copytmap <END> G
|
||||
copytmap <C-u> u
|
||||
copytmap <PAGEDOWN> n f <C-F> <Space>
|
||||
copytmap <PAGEUP> p b <C-B>
|
||||
|
||||
# Changing priority and deleting tasks
|
||||
tmap J eval -q fm.ui.taskview.task_move(-1)
|
||||
tmap K eval -q fm.ui.taskview.task_move(0)
|
||||
tmap dd eval -q fm.ui.taskview.task_remove()
|
||||
tmap <pagedown> eval -q fm.ui.taskview.task_move(-1)
|
||||
tmap <pageup> eval -q fm.ui.taskview.task_move(0)
|
||||
tmap <delete> eval -q fm.ui.taskview.task_remove()
|
||||
|
||||
# Basic
|
||||
#tmap <C-l> redraw_window
|
||||
tmap <ESC> taskview_close
|
||||
copytmap <ESC> q Q w <C-c>
|
||||
|
||||
|
||||
|
||||
|
||||
map sp console shell bash ~/.config/Scripts/speedvid.sh %f%space
|
||||
map x shell chmod -x %s
|
||||
map TT shell i3 exec urxvt "%d"
|
||||
map vc shell ~/.config/Scripts/concatenate.sh %s
|
||||
|
||||
#General
|
||||
map V console shell vim%space
|
||||
map cW bulkrename %s
|
||||
map mkd console mkdir%space
|
||||
map sc console shell ln -sT%space
|
||||
map D console delete
|
||||
map X shell ~/.config/Scripts/extract %f
|
||||
map Z shell tar -cvzf %f.tar.gz %f
|
||||
map <C-f> fzf_select
|
||||
map <C-l> fzf_locate
|
||||
|
||||
#Document Manipulation
|
||||
map p1s shell lpr -o sides=one-sided %f
|
||||
map p2s shell lpr -o sides=two-sided-long-edge %f
|
||||
map MP shell pandoc %f -o %f.pdf
|
||||
map MX shell xelatex %f
|
||||
map ML shell latex %f
|
||||
map TC shell ~/.config/Scripts/texclear
|
||||
map Txa console shell cp ~/Documents/LaTeX/article.tex%space
|
||||
map Txs console shell cp ~/Documents/LaTeX/beamer.tex%space
|
||||
map Txh console shell cp ~/Documents/LaTeX/handout.tex%space
|
||||
|
||||
#Image commands
|
||||
map bg shell cp %f ~/.config/wall.png && feh --bg-scale %f
|
||||
map bw shell wal -c -i %f && cp %f ~/.config/wall.png
|
||||
map C shell killall w3mimgdisplay && convert -rotate 90 %s %s
|
||||
map F shell killall w3mimgdisplay && convert -flop %s %s
|
||||
map bl shell killall w3mimgdisplay && convert %s -resize 1440x1080\> bl_%s
|
||||
map TR shell convert %s -transparent white %s
|
||||
|
||||
#Music (mpd) shortcuts
|
||||
map MS shell mpd
|
||||
map MK shell killall mpd
|
||||
map Ma shell mpc add "%s"
|
||||
map Ms shell mpc play
|
||||
map Mp shell mpc toggle
|
||||
map Mn shell mpc next
|
||||
map Mb shell mpc prev
|
||||
map MN shell mpc stop && mpc clear && mpc add "%s"
|
||||
map Mo shell mpc seek 0%
|
||||
|
||||
#Audio tagging (Requires eyeD3)
|
||||
map Ta eval fm.open_console('shell eyeD3 -a ' + fm.thisfile.relative_path, position=15)
|
||||
#Artist
|
||||
map TA eval fm.open_console('shell eyeD3 -A ' + fm.thisfile.relative_path, position=15)
|
||||
#Album
|
||||
map Tb eval fm.open_console('shell eyeD3 -b ' + fm.thisfile.relative_path, position=15)
|
||||
#Album artist
|
||||
map Tt eval fm.open_console('shell eyeD3 -t "" ' + fm.thisfile.relative_path, position=16)
|
||||
map Tn eval fm.open_console('shell eyeD3 -n "" ' + fm.thisfile.relative_path, position=16)
|
||||
|
||||
#Downloading
|
||||
map ytv console shell youtube-dl -ic%space
|
||||
map yta console shell youtube-dl -xic%space
|
||||
|
||||
#My own
|
||||
map sup shell ~/.config/Scripts/webupdate
|
||||
map ss shell rsync -avrP --rsh='ssh -p2222' %s lukesmith@lukesmith.xyz:/home1/lukesmith/public_html
|
||||
map slt shell rsync -avrP --rsh='ssh -p2222' %s lukesmith@lukesmith.xyz:/home1/lukesmith/public_html/longterm
|
||||
3
.vimrc
3
.vimrc
@ -38,6 +38,9 @@ vnoremap S :s//g<Left><Left>
|
||||
autocmd BufRead,BufNewFile /tmp/calcurse* set filetype=markdown
|
||||
autocmd BufRead,BufNewFile ~/.calcurse/notes/* set filetype=markdown
|
||||
|
||||
"Auto-update shortcuts on change:
|
||||
autocmd BufWritePost ~/.config/Scripts/folders,~/.config/Scripts/configs !python ~/.config/Scripts/shortcuts.py
|
||||
|
||||
"""LATEX
|
||||
autocmd FileType tex inoremap <F5> <Esc>:!xelatex<spacE><c-r>%<Enter>i
|
||||
autocmd FileType tex nnoremap <F5> :!xelatex<spacE><c-r>%<Enter>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user