{"action":"created","issue":{"url":"https://api.github.com/repos/syl20bnr/spacemacs/issues/6693","repository_url":"https://api.github.com/repos/syl20bnr/spacemacs","labels_url":"https://api.github.com/repos/syl20bnr/spacemacs/issues/6693/labels{/name}","comments_url":"https://api.github.com/repos/syl20bnr/spacemacs/issues/6693/comments","events_url":"https://api.github.com/repos/syl20bnr/spacemacs/issues/6693/events","html_url":"https://github.com/syl20bnr/spacemacs/issues/6693","id":167886067,"number":6693,"title":"Feature proposal, PR ready (ish): Moving & swapping buffers, ace-jump removal","user":{"login":"quicknir","id":10457096,"avatar_url":"https://avatars.githubusercontent.com/u/10457096?v=3","gravatar_id":"","url":"https://api.github.com/users/quicknir","html_url":"https://github.com/quicknir","followers_url":"https://api.github.com/users/quicknir/followers","following_url":"https://api.github.com/users/quicknir/following{/other_user}","gists_url":"https://api.github.com/users/quicknir/gists{/gist_id}","starred_url":"https://api.github.com/users/quicknir/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/quicknir/subscriptions","organizations_url":"https://api.github.com/users/quicknir/orgs","repos_url":"https://api.github.com/users/quicknir/repos","events_url":"https://api.github.com/users/quicknir/events{/privacy}","received_events_url":"https://api.github.com/users/quicknir/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/syl20bnr/spacemacs/labels/-%20Mailling%20list%20-","name":"- Mailling list -","color":"fef2c0"},{"url":"https://api.github.com/repos/syl20bnr/spacemacs/labels/Buffers","name":"Buffers","color":"1d76db"},{"url":"https://api.github.com/repos/syl20bnr/spacemacs/labels/Key%20Bindings","name":"Key Bindings","color":"207de5"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":14,"created_at":"2016-07-27T15:39:10Z","updated_at":"2016-08-04T21:49:06Z","closed_at":null,"body":"This issue is to suggest an improvement and see how people feel, before pushing forward with a PR. I currently have this code working locally. The gist is to add a new set of bindings to `SPC b 1`, `SPC b 2`, etc. Without the prefix argument, this command moves the currently active buffer to the nth window (if the nth window does not exist, you get an error and nothing happens). Focus stays on the originally active *window*, i.e. does not follow the buffer. With the prefix argument, it swaps the currently active buffer with the active buffer at the nth window. Again, focus stays on the current window.\r\n\r\nAs you can see, this very nicely parallels the functionality of `SPC 1` etc. It's very concise, works nicely with the window numbering system, and together these keybindings with their optional prefix arguments cover the majority of what you would need to do other than creating new splits. In particular it covers functionality that until now was only really covered by ace window (ace-swap-window) . While ace window is a nice package, given that we are explicitly numbering all the windows anyhow, it's more convenient to use those window numberings (since you don't have to wait for the letters to pop up) and also more consistent (since `SPC 1` et al are very widely used). So I think we should remove it from the standard spacemacs distro.\r\n\r\nA last note: what's the reasoning for not moving focus with the buffer? Well, there are cases where you'd want to do either one, so no matter which you choose the user will have to `SPC n` back to the window they want about half the time. This isn't the end of the world as that's only two more keystrokes. However, there is a particular use case: if you want to open a bunch of stuff from e.g. helm projectile, and put it all in specific windows. A very nice way to do that with the current bindings is to mark all the entries you want and hit enter; this opens all of those buffers and associates them with the current window. You can then repeatedly hit `SPC b n` to distribute/send those buffers to the exact windows you want. This is more convenient than any alternative currently available IMHO (the main current alternative is to switch to each buffer, repeatedly hitting `SPC r l` to resume your helm search, and open one file in that buffer). Of course, if focus moved each time this would be far more awkward.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/syl20bnr/spacemacs/issues/comments/237694190","html_url":"https://github.com/syl20bnr/spacemacs/issues/6693#issuecomment-237694190","issue_url":"https://api.github.com/repos/syl20bnr/spacemacs/issues/6693","id":237694190,"user":{"login":"quicknir","id":10457096,"avatar_url":"https://avatars.githubusercontent.com/u/10457096?v=3","gravatar_id":"","url":"https://api.github.com/users/quicknir","html_url":"https://github.com/quicknir","followers_url":"https://api.github.com/users/quicknir/followers","following_url":"https://api.github.com/users/quicknir/following{/other_user}","gists_url":"https://api.github.com/users/quicknir/gists{/gist_id}","starred_url":"https://api.github.com/users/quicknir/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/quicknir/subscriptions","organizations_url":"https://api.github.com/users/quicknir/orgs","repos_url":"https://api.github.com/users/quicknir/repos","events_url":"https://api.github.com/users/quicknir/events{/privacy}","received_events_url":"https://api.github.com/users/quicknir/received_events","type":"User","site_admin":false},"created_at":"2016-08-04T21:49:06Z","updated_at":"2016-08-04T21:49:06Z","body":"@TheBB How do you feel about the proposed solution to maintain ace bindings and increase their consistency, while also allowing D to be used for delete-other-* ?\r\n\r\n@syl20bnr We've let it lie for a bit and had a bit of discussion. How do you feel about SPC b # to send, and prefix SPC b # to swap? I've concluded since as well that double prefix SPC b # to clone/copy is not necessary; we can just bind make-indirect-buffer or something similar to SPC b c and the user can easily move the copy to wherever they need afterwards. I'd like to put some work into this this weekend; I'll be busy late in August and I was hoping to get this stuff in before the release."}}
{"actor":{"display_login":"quicknir"}}