{"action":"created","issue":{"url":"https://api.github.com/repos/fish-shell/fish-shell/issues/2287","labels_url":"https://api.github.com/repos/fish-shell/fish-shell/issues/2287/labels{/name}","comments_url":"https://api.github.com/repos/fish-shell/fish-shell/issues/2287/comments","events_url":"https://api.github.com/repos/fish-shell/fish-shell/issues/2287/events","html_url":"https://github.com/fish-shell/fish-shell/issues/2287","id":100017117,"number":2287,"title":"[feature] Place the cursor at a given place after an abbr","user":{"login":"Hettomei","id":2079042,"avatar_url":"https://avatars.githubusercontent.com/u/2079042?v=3","gravatar_id":"","url":"https://api.github.com/users/Hettomei","html_url":"https://github.com/Hettomei","followers_url":"https://api.github.com/users/Hettomei/followers","following_url":"https://api.github.com/users/Hettomei/following{/other_user}","gists_url":"https://api.github.com/users/Hettomei/gists{/gist_id}","starred_url":"https://api.github.com/users/Hettomei/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Hettomei/subscriptions","organizations_url":"https://api.github.com/users/Hettomei/orgs","repos_url":"https://api.github.com/users/Hettomei/repos","events_url":"https://api.github.com/users/Hettomei/events{/privacy}","received_events_url":"https://api.github.com/users/Hettomei/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/fish-shell/fish-shell/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/fish-shell/fish-shell/milestones/4","html_url":"https://github.com/fish-shell/fish-shell/milestones/fish-future","labels_url":"https://api.github.com/repos/fish-shell/fish-shell/milestones/4/labels","id":130257,"number":4,"title":"fish-future","description":"These are bugs that are not targeted for an upcoming release. After a release, we will reexamine these bugs and pull any in that we think are good targets.\r\n\r\nIf you can provide a fix for a bug in this milestone, we'll generally accept it for the next release even if the bug is not in the release.","creator":{"login":"ridiculousfish","id":920838,"avatar_url":"https://avatars.githubusercontent.com/u/920838?v=3","gravatar_id":"","url":"https://api.github.com/users/ridiculousfish","html_url":"https://github.com/ridiculousfish","followers_url":"https://api.github.com/users/ridiculousfish/followers","following_url":"https://api.github.com/users/ridiculousfish/following{/other_user}","gists_url":"https://api.github.com/users/ridiculousfish/gists{/gist_id}","starred_url":"https://api.github.com/users/ridiculousfish/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ridiculousfish/subscriptions","organizations_url":"https://api.github.com/users/ridiculousfish/orgs","repos_url":"https://api.github.com/users/ridiculousfish/repos","events_url":"https://api.github.com/users/ridiculousfish/events{/privacy}","received_events_url":"https://api.github.com/users/ridiculousfish/received_events","type":"User","site_admin":false},"open_issues":411,"closed_issues":106,"state":"open","created_at":"2012-06-11T02:25:13Z","updated_at":"2015-08-10T17:06:04Z","due_on":null,"closed_at":null},"comments":5,"created_at":"2015-08-10T09:25:21Z","updated_at":"2015-08-11T12:10:32Z","closed_at":null,"body":"Hi,\r\n\r\nI love abbreviation, it always show me the right command.\r\n\r\nBut sometimes I need to put the cursor at a given place, is it possible to do that ?\r\n\r\nExample : \r\n```fish\r\nabbr -a describe 'mysql -u root my_database -e \"describe $CURSOR\"'\r\n```\r\nand so, after typing \"describe\" I would like to have my cursor at $CURSOR\r\n\r\n\r\nThank you for this awesome shell ;)"},"comment":{"url":"https://api.github.com/repos/fish-shell/fish-shell/issues/comments/129852077","html_url":"https://github.com/fish-shell/fish-shell/issues/2287#issuecomment-129852077","issue_url":"https://api.github.com/repos/fish-shell/fish-shell/issues/2287","id":129852077,"user":{"login":"Hettomei","id":2079042,"avatar_url":"https://avatars.githubusercontent.com/u/2079042?v=3","gravatar_id":"","url":"https://api.github.com/users/Hettomei","html_url":"https://github.com/Hettomei","followers_url":"https://api.github.com/users/Hettomei/followers","following_url":"https://api.github.com/users/Hettomei/following{/other_user}","gists_url":"https://api.github.com/users/Hettomei/gists{/gist_id}","starred_url":"https://api.github.com/users/Hettomei/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Hettomei/subscriptions","organizations_url":"https://api.github.com/users/Hettomei/orgs","repos_url":"https://api.github.com/users/Hettomei/repos","events_url":"https://api.github.com/users/Hettomei/events{/privacy}","received_events_url":"https://api.github.com/users/Hettomei/received_events","type":"User","site_admin":false},"created_at":"2015-08-11T12:10:32Z","updated_at":"2015-08-11T12:10:32Z","body":"Hi,\r\n\r\n>  Also, what would you like or expect to happen if you press return after typing the abbreviation but before it expands? Today that expands and then executes it; maybe it should just expand it.\r\n\r\nIt s simple : \r\n\r\nCase their is no $CURSOR (or something else) defined  and user press enter\r\n  -> same behavior as now\r\n\r\nCase their is no $CURSOR (or something else) defined  and user press space\r\n  -> same behavior as now\r\n\r\nCase their is a $CURSOR defined and user press enter\r\n  -> expand the abbrev, put cursor on $CURSOR : no surprise, no error\r\n\r\n Case their is a $CURSOR defined and user press space\r\n  -> expand the abbrev, put cursor on $CURSOR : no surprise, no error, delete the last space added by keyboard"}}