summaryrefslogtreecommitdiff
path: root/.Xresources
diff options
context:
space:
mode:
authorRené 'Necoro' Neumann <necoro@necoro.net>2013-09-30 14:31:24 +0200
committerRené 'Necoro' Neumann <necoro@necoro.net>2013-09-30 16:08:31 +0200
commit975b68f3d8e3c9030d7f3c284e4e83d3667da13c (patch)
tree8779ac3e85a7390ad1ac5959028c51a235e7eef6 /.Xresources
parenta6ddba857b66b5376969d3d76938a0ff7a6c123a (diff)
downloaddotfiles-975b68f3d8e3c9030d7f3c284e4e83d3667da13c.tar.gz
dotfiles-975b68f3d8e3c9030d7f3c284e4e83d3667da13c.tar.bz2
dotfiles-975b68f3d8e3c9030d7f3c284e4e83d3667da13c.zip
Urxvt autotransform for <filename>:<line>.
Diffstat (limited to '.Xresources')
-rw-r--r--.Xresources5
1 files changed, 4 insertions, 1 deletions
diff --git a/.Xresources b/.Xresources
index c935430..fcd6bb6 100644
--- a/.Xresources
+++ b/.Xresources
@@ -23,7 +23,7 @@ URxvt.keysym.Shift-Up: command:\033]720;1\007
URxvt.keysym.Shift-Down: command:\033]721;1\007
! perl-modules
-URxvt.perl-ext-common: default,url-select,clipboard
+URxvt.perl-ext-common: default,url-select,clipboard,selection-autotransform
! allow Alt-V/-C for pasting from/copying to clipboard
URxvt.keysym.M-v: perl:clipboard:paste
@@ -34,6 +34,9 @@ URxvt.url-select.launcher: /home/necoro/bin/openlink
URxvt.keysym.M-u: perl:url-select:select_next
URxvt.url-select.underline: true
+! transform selections of <filename>:<line> into a vim cmdline
+URxvt.selection-autotransform.0: s/^([^:[:space:]]+):(\\d+):?$/vim +$2 \\Q$1\\E\\x0d/
+
! colors
URxvt.background: #000000
URxvt.foreground: #FFFFFF