diff options
author | Tom Willemsen | 2012-10-16 10:03:37 +0200 |
---|---|---|
committer | Tom Willemsen | 2012-10-16 10:03:37 +0200 |
commit | e0f1cc78a219cc386c6895d4f354f378e319448a (patch) | |
tree | e355f28c3df1e4b65d8c0d4d1b8c4b6b1aaa54bd /.conkerorrc | |
parent | 336021fc03ee8a2ae27458087c4928b6f4f8d77c (diff) | |
download | dotfiles-e0f1cc78a219cc386c6895d4f354f378e319448a.tar.gz dotfiles-e0f1cc78a219cc386c6895d4f354f378e319448a.zip |
.conkerorrc/init.js
Diffstat (limited to '.conkerorrc')
-rw-r--r-- | .conkerorrc/init.js | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/.conkerorrc/init.js b/.conkerorrc/init.js index 3d247ba..9608427 100644 --- a/.conkerorrc/init.js +++ b/.conkerorrc/init.js @@ -254,4 +254,16 @@ function read_url_github_command_handler(input) || read_url_github_repo_command_handler(input); } -read_url_handler_list = [read_url_github_command_handler]; +function read_url_local_port_handler(input) +{ + var m = /^lh (\d{1,5})$/.exec(input); + + if (m) { + return "http://localhost:" + m[1]; + } + + return null; +} + +read_url_handler_list = [read_url_local_port_handler, + read_url_github_command_handler]; |