{"action":"created","issue":{"url":"https://api.github.com/repos/trogdoro/xiki/issues/137","labels_url":"https://api.github.com/repos/trogdoro/xiki/issues/137/labels{/name}","comments_url":"https://api.github.com/repos/trogdoro/xiki/issues/137/comments","events_url":"https://api.github.com/repos/trogdoro/xiki/issues/137/events","html_url":"https://github.com/trogdoro/xiki/issues/137","id":65895087,"number":137,"title":"Bind shortcuts don't work when bash is set to vi mode","user":{"login":"choffee","id":54990,"avatar_url":"https://avatars.githubusercontent.com/u/54990?v=3","gravatar_id":"","url":"https://api.github.com/users/choffee","html_url":"https://github.com/choffee","followers_url":"https://api.github.com/users/choffee/followers","following_url":"https://api.github.com/users/choffee/following{/other_user}","gists_url":"https://api.github.com/users/choffee/gists{/gist_id}","starred_url":"https://api.github.com/users/choffee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/choffee/subscriptions","organizations_url":"https://api.github.com/users/choffee/orgs","repos_url":"https://api.github.com/users/choffee/repos","events_url":"https://api.github.com/users/choffee/events{/privacy}","received_events_url":"https://api.github.com/users/choffee/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-04-02T09:59:54Z","updated_at":"2015-04-11T22:22:23Z","closed_at":"2015-04-07T23:28:57Z","body":"Hi \r\n\r\nIn the .xsh file it sets Ctrl-R to xsh-r using  \r\n  bind \\\"$xiki_reverse_key'\" \"\\C-axsh -r \\n\"'\r\nThis assumes that \\C-a moves to the start of the line.\r\nIf you use bash in vi mode, using set -o vi, then it fails.\r\n\r\nI did trying setting it with an alternate shortcut\r\n  bind \\\"$xiki_reverse_key'\" \"\\e[H xsh -r \\n\"'\r\nBut that only sort of works, you have to press crtl-R twice quickly.\r\n\r\nThere could be a separate set of shortcuts if bash is in vi mode. \r\nbind \\\"$xiki_reverse_key'\" \"\\e^ixsh -r \\n\"'\r\nThat seems to work okay. It does feel a little hacky though. Maybe the \\C-a bit could be replace with a function in some way?\r\n"},"comment":{"url":"https://api.github.com/repos/trogdoro/xiki/issues/comments/91935394","html_url":"https://github.com/trogdoro/xiki/issues/137#issuecomment-91935394","issue_url":"https://api.github.com/repos/trogdoro/xiki/issues/137","id":91935394,"user":{"login":"CaptainQuirk","id":993420,"avatar_url":"https://avatars.githubusercontent.com/u/993420?v=3","gravatar_id":"","url":"https://api.github.com/users/CaptainQuirk","html_url":"https://github.com/CaptainQuirk","followers_url":"https://api.github.com/users/CaptainQuirk/followers","following_url":"https://api.github.com/users/CaptainQuirk/following{/other_user}","gists_url":"https://api.github.com/users/CaptainQuirk/gists{/gist_id}","starred_url":"https://api.github.com/users/CaptainQuirk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CaptainQuirk/subscriptions","organizations_url":"https://api.github.com/users/CaptainQuirk/orgs","repos_url":"https://api.github.com/users/CaptainQuirk/repos","events_url":"https://api.github.com/users/CaptainQuirk/events{/privacy}","received_events_url":"https://api.github.com/users/CaptainQuirk/received_events","type":"User","site_admin":false},"created_at":"2015-04-11T22:22:23Z","updated_at":"2015-04-11T22:22:23Z","body":"What about tmux users who remap C-b to C-a as leader ?"}}