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];