{"action":"created","issue":{"url":"https://api.github.com/repos/fish-shell/fish-shell/issues/3031","repository_url":"https://api.github.com/repos/fish-shell/fish-shell","labels_url":"https://api.github.com/repos/fish-shell/fish-shell/issues/3031/labels{/name}","comments_url":"https://api.github.com/repos/fish-shell/fish-shell/issues/3031/comments","events_url":"https://api.github.com/repos/fish-shell/fish-shell/issues/3031/events","html_url":"https://github.com/fish-shell/fish-shell/issues/3031","id":154938144,"number":3031,"title":"`commandline -f` ops reordered with respect to other commandline operations","user":{"login":"laughedelic","id":766656,"avatar_url":"https://avatars.githubusercontent.com/u/766656?v=3","gravatar_id":"","url":"https://api.github.com/users/laughedelic","html_url":"https://github.com/laughedelic","followers_url":"https://api.github.com/users/laughedelic/followers","following_url":"https://api.github.com/users/laughedelic/following{/other_user}","gists_url":"https://api.github.com/users/laughedelic/gists{/gist_id}","starred_url":"https://api.github.com/users/laughedelic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/laughedelic/subscriptions","organizations_url":"https://api.github.com/users/laughedelic/orgs","repos_url":"https://api.github.com/users/laughedelic/repos","events_url":"https://api.github.com/users/laughedelic/events{/privacy}","received_events_url":"https://api.github.com/users/laughedelic/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 issues that are not targeted for an upcoming minor or major release. After a release, we will re-examine these issues and pull any in that we think are good targets; that is retarget them to the next minor (or major) release.\r\n\r\nIf you can provide a fix for an issue in this milestone, we'll generally accept it for the next release even if the issue is not targeted for 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":367,"closed_issues":1,"state":"open","created_at":"2012-06-11T02:25:13Z","updated_at":"2016-05-20T21:47:28Z","due_on":null,"closed_at":null},"comments":7,"created_at":"2016-05-15T23:27:05Z","updated_at":"2016-05-20T22:43:06Z","closed_at":null,"body":"I observe strange behaviour regarding the execution order of `commandline` calls _with_ `-f` option and _without_.\r\n\r\nExample: I define the following function and bind it to a <kbd>ctrl</kbd><kbd>s</kbd>:\r\n\r\n```fish\r\nfunction __surround\r\n    commandline -f backward-kill-path-component\r\n    commandline -i '\"'\r\n    commandline -f yank\r\n    commandline -a '\"'\r\nend\r\n\r\nbind \\cs '__surround'\r\n```\r\n\r\n(in my `fish_user_key_bindings.fish`)\r\n\r\nWhat happens instead:\r\n- cut + paste (those with `-f`)\r\n- insert + append\r\n\r\nHere is a demo: [asciicast](https://asciinema.org/a/45721)\r\n\r\nThis is just a simplified example, I have encountered this behaviour in more situations and if this is not enough, I can provide more examples. \r\n\r\n---\r\n- Fish version: `fish, version 2.3b2` (`homebrew install --devel fish`)\r\n- Operating system: OS X El Capitan\r\n- Terminal emulator: iTerm2\r\n"},"comment":{"url":"https://api.github.com/repos/fish-shell/fish-shell/issues/comments/220735571","html_url":"https://github.com/fish-shell/fish-shell/issues/3031#issuecomment-220735571","issue_url":"https://api.github.com/repos/fish-shell/fish-shell/issues/3031","id":220735571,"user":{"login":"faho","id":5185367,"avatar_url":"https://avatars.githubusercontent.com/u/5185367?v=3","gravatar_id":"","url":"https://api.github.com/users/faho","html_url":"https://github.com/faho","followers_url":"https://api.github.com/users/faho/followers","following_url":"https://api.github.com/users/faho/following{/other_user}","gists_url":"https://api.github.com/users/faho/gists{/gist_id}","starred_url":"https://api.github.com/users/faho/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/faho/subscriptions","organizations_url":"https://api.github.com/users/faho/orgs","repos_url":"https://api.github.com/users/faho/repos","events_url":"https://api.github.com/users/faho/events{/privacy}","received_events_url":"https://api.github.com/users/faho/received_events","type":"User","site_admin":false},"created_at":"2016-05-20T22:43:06Z","updated_at":"2016-05-20T22:43:06Z","body":"@laughedelic: That changed it from a stack (which would mean all your stuff is interpreted in reverse) to a queue.\r\n\r\nThat was another notable time this behavior was touched, so it's important for any further changes (so as not to regress, etc). The comment wasn't for you in particular."}}
{"actor":{"display_login":"faho"}}