{"action":"created","issue":{"url":"https://api.github.com/repos/shaunlebron/parinfer/issues/89","repository_url":"https://api.github.com/repos/shaunlebron/parinfer","labels_url":"https://api.github.com/repos/shaunlebron/parinfer/issues/89/labels{/name}","comments_url":"https://api.github.com/repos/shaunlebron/parinfer/issues/89/comments","events_url":"https://api.github.com/repos/shaunlebron/parinfer/issues/89/events","html_url":"https://github.com/shaunlebron/parinfer/issues/89","id":131242161,"number":89,"title":"add Indent Mode option for indenting to next/prev critical tabstop","user":{"login":"shaunlebron","id":116838,"avatar_url":"https://avatars.githubusercontent.com/u/116838?v=3","gravatar_id":"","url":"https://api.github.com/users/shaunlebron","html_url":"https://github.com/shaunlebron","followers_url":"https://api.github.com/users/shaunlebron/followers","following_url":"https://api.github.com/users/shaunlebron/following{/other_user}","gists_url":"https://api.github.com/users/shaunlebron/gists{/gist_id}","starred_url":"https://api.github.com/users/shaunlebron/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shaunlebron/subscriptions","organizations_url":"https://api.github.com/users/shaunlebron/orgs","repos_url":"https://api.github.com/users/shaunlebron/repos","events_url":"https://api.github.com/users/shaunlebron/events{/privacy}","received_events_url":"https://api.github.com/users/shaunlebron/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/shaunlebron/parinfer/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2016-02-04T04:45:22Z","updated_at":"2016-03-29T07:01:32Z","closed_at":null,"body":"from @snoe on clojurians slack:\r\n\r\n> I've been thinking about my workflow a bit and I wonder if `indent` and `dedent` functions would be useful in indent-mode because moving things with space is slow and using 2-stop tabs is imprecise.  Basically, ask where are the tab stops that cause structural changes? `|(|let [|attrs {|:style {|:color \"green\"}])` Is parinfer in a better place to move the line around these stops (or expose the tab stop info) than editors themselves?\r\n\r\nWe can add a new Indent Mode option `indentCursorLine` with the following possible values:\r\n\r\n- `\"NEXT_TABSTOP\"`\r\n- `\"PREV_TABSTOP\"`\r\n\r\nFor example:\r\n\r\n```js\r\nindentMode(text, {cursorLine: 123, indentCursorLine: \"NEXT_TABSTOP\"})\r\n```\r\n\r\nwill put together some test cases to verify correct expected behavior with @snoe"},"comment":{"url":"https://api.github.com/repos/shaunlebron/parinfer/issues/comments/202746589","html_url":"https://github.com/shaunlebron/parinfer/issues/89#issuecomment-202746589","issue_url":"https://api.github.com/repos/shaunlebron/parinfer/issues/89","id":202746589,"user":{"login":"cursive-ide","id":5589171,"avatar_url":"https://avatars.githubusercontent.com/u/5589171?v=3","gravatar_id":"","url":"https://api.github.com/users/cursive-ide","html_url":"https://github.com/cursive-ide","followers_url":"https://api.github.com/users/cursive-ide/followers","following_url":"https://api.github.com/users/cursive-ide/following{/other_user}","gists_url":"https://api.github.com/users/cursive-ide/gists{/gist_id}","starred_url":"https://api.github.com/users/cursive-ide/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cursive-ide/subscriptions","organizations_url":"https://api.github.com/users/cursive-ide/orgs","repos_url":"https://api.github.com/users/cursive-ide/repos","events_url":"https://api.github.com/users/cursive-ide/events{/privacy}","received_events_url":"https://api.github.com/users/cursive-ide/received_events","type":"User","site_admin":false},"created_at":"2016-03-29T07:01:32Z","updated_at":"2016-03-29T07:01:32Z","body":"I think that's right. Basically, the shadowing removes any which wouldn't create new nestings under indent mode anyway.\r\n\r\nI need to look at this again tomorrow, it works well but is quite slow - I'm not sure why that would be."}}