{"action":"created","issue":{"url":"https://api.github.com/repos/tpope/vim-speeddating/issues/27","repository_url":"https://api.github.com/repos/tpope/vim-speeddating","labels_url":"https://api.github.com/repos/tpope/vim-speeddating/issues/27/labels{/name}","comments_url":"https://api.github.com/repos/tpope/vim-speeddating/issues/27/comments","events_url":"https://api.github.com/repos/tpope/vim-speeddating/issues/27/events","html_url":"https://github.com/tpope/vim-speeddating/issues/27","id":267874918,"number":27,"title":"Fallbacks have no effect","user":{"login":"mickk-on-cpp","id":5111293,"avatar_url":"https://avatars3.githubusercontent.com/u/5111293?v=4","gravatar_id":"","url":"https://api.github.com/users/mickk-on-cpp","html_url":"https://github.com/mickk-on-cpp","followers_url":"https://api.github.com/users/mickk-on-cpp/followers","following_url":"https://api.github.com/users/mickk-on-cpp/following{/other_user}","gists_url":"https://api.github.com/users/mickk-on-cpp/gists{/gist_id}","starred_url":"https://api.github.com/users/mickk-on-cpp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mickk-on-cpp/subscriptions","organizations_url":"https://api.github.com/users/mickk-on-cpp/orgs","repos_url":"https://api.github.com/users/mickk-on-cpp/repos","events_url":"https://api.github.com/users/mickk-on-cpp/events{/privacy}","received_events_url":"https://api.github.com/users/mickk-on-cpp/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2017-10-24T02:16:09Z","updated_at":"2017-10-25T20:57:35Z","closed_at":null,"author_association":"NONE","body":"I can’t seem to get Ctrl-A/Ctrl-X to have any effect on regular, non-date numbers in normal mode. I tried disabling nearly every plugin and double-checked that my config is not doing anything to Ctrl-A or Ctrl-X to no avail. I realise that’s not the most helpful of issue reports but I’m at a loss as to what to do next.\r\n\r\nThe output of `:map <Plug>SpeedDating` looks sensible to me:\r\n\r\n```vimL\r\nn  <Plug>SpeedDatingFallbackDown * <C-X>\r\nn  <Plug>SpeedDatingFallbackUp * <C-A>\r\nn  <Plug>SpeedDatingNowUTC * :<C-U>call speeddating#timestamp(1,v:count)<CR>\r\nn  <Plug>SpeedDatingNowLocal * :<C-U>call speeddating#timestamp(0,v:count)<CR>\r\nv  <Plug>SpeedDatingDown * :<C-U>call speeddating#incrementvisual(-v:count1)<CR>\r\nv  <Plug>SpeedDatingUp * :<C-U>call speeddating#incrementvisual(v:count1)<CR>\r\nn  <Plug>SpeedDatingDown * :<C-U>call speeddating#increment(-v:count1)<CR>\r\nn  <Plug>SpeedDatingUp * :<C-U>call speeddating#increment(v:count1)<CR>\r\n```\r\n\r\nSame with the output of `:map ^A`:\r\n\r\n```vimL\r\nx  <C-A>         <Plug>SpeedDatingUp\r\nn  <C-A>         <Plug>SpeedDatingUp\r\n```\r\n\r\nDitto `:map ^X`, so I’ll omit it.\r\n\r\nIf I add an `echoerr …` line in `speeddating#increment` right before it executes the fallback dispatch I can see that control flow proceeds as expected [to that point](https://github.com/tpope/vim-speeddating/blob/a418667791f03694065948342f2d6c5cca8d0f32/autoload/speeddating.vim#L105).\r\n\r\nThe rest of the plugin seems to work fine: I can tweak the example dates provided in the `:help`, do visual increments/decrements, set things to the current date/time, or undo/repeat it all."},"comment":{"url":"https://api.github.com/repos/tpope/vim-speeddating/issues/comments/339469084","html_url":"https://github.com/tpope/vim-speeddating/issues/27#issuecomment-339469084","issue_url":"https://api.github.com/repos/tpope/vim-speeddating/issues/27","id":339469084,"user":{"login":"mickk-on-cpp","id":5111293,"avatar_url":"https://avatars3.githubusercontent.com/u/5111293?v=4","gravatar_id":"","url":"https://api.github.com/users/mickk-on-cpp","html_url":"https://github.com/mickk-on-cpp","followers_url":"https://api.github.com/users/mickk-on-cpp/followers","following_url":"https://api.github.com/users/mickk-on-cpp/following{/other_user}","gists_url":"https://api.github.com/users/mickk-on-cpp/gists{/gist_id}","starred_url":"https://api.github.com/users/mickk-on-cpp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mickk-on-cpp/subscriptions","organizations_url":"https://api.github.com/users/mickk-on-cpp/orgs","repos_url":"https://api.github.com/users/mickk-on-cpp/repos","events_url":"https://api.github.com/users/mickk-on-cpp/events{/privacy}","received_events_url":"https://api.github.com/users/mickk-on-cpp/received_events","type":"User","site_admin":false},"created_at":"2017-10-25T20:57:35Z","updated_at":"2017-10-25T20:57:35Z","author_association":"NONE","body":"I found it: it’s my own remapping of `1` that I believe makes `:exe \"norm 1\\<Plug>SpeedDatingFallbackUp\"` not perform as intended:\r\n\r\n- `:exe \\<Plug>SpeedDatingFallbackUp` (no count) behaves as expected\r\n- changing the increment fallback to e.g. `exe \"norm \\<Plug>SpeedDatingFallbackUp\"` also makes the mapping perform as expected (although of course the count no longer has any effect)"}}
{"actor":{"display_login":"mickk-on-cpp"}}