projects
/
dana
/
urxvt.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b547369
)
added the selection:rot13 feature
author
elmex
<elmex>
Mon, 2 Jan 2006 21:33:25 +0000
(21:33 +0000)
committer
elmex
<elmex>
Mon, 2 Jan 2006 21:33:25 +0000
(21:33 +0000)
src/perl/selection
[new file with mode: 0644]
patch
|
blob
diff --git a/src/perl/selection
b/src/perl/selection
new file mode 100644
(file)
index 0000000..
9189f59
--- /dev/null
+++ b/
src/perl/selection
@@ -0,0
+1,5
@@
+sub on_keyboard_command {
+ my ($term, $cmd) = @_;
+ $cmd eq "selection:rot13"
+ and $term->selection (map { y/A-Za-z/N-ZA-Mn-za-m/; $_ } $term->selection);
+}