Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Request: Swapping text across different buffers #15

Open
svermeulen opened this issue Dec 25, 2013 · 6 comments
Open

Request: Swapping text across different buffers #15

svermeulen opened this issue Dec 25, 2013 · 6 comments

Comments

@svermeulen
Copy link

Right now, It appears as though the last area marked for swapping is local to the window, or possibly the buffer. Seems more useful to me to just have one global concept of swapping text.

@tommcdo
Copy link
Owner

tommcdo commented Dec 25, 2013

This would be a pretty easy change. I had chosen to use buffer-local exchanges, but I don't really remember the reasons. Looking at it now, I agree that it would be more useful to be able to set exchanges globally.

I'll whip something up shortly.

@tommcdo
Copy link
Owner

tommcdo commented Dec 25, 2013

I remember the reasons now; not knowing where the buffer is. It could be hidden, or completely deleted. I'll have to think about this more before I implement anything.

@blueyed
Copy link

blueyed commented Jan 29, 2014

In case of a hidden or deleted buffer, it might just abort with an error - just like with overlapping text.

@tommcdo
Copy link
Owner

tommcdo commented Jan 29, 2014

That seems like a sensible thing to do. I'll try it out when I get some available time.

@tommcdo
Copy link
Owner

tommcdo commented Jan 29, 2014

A problem that comes to mind is the use of u after doing an exchange across two buffers.

I hope it's deemed acceptable that only the active buffer will be reverted; to cite some default Vim behaviour, consider the disappointment that arises when u follows dp in diff mode. It's not what the user wanted, but I think meeting the expectations of the user in a situation like this is just beyond reasonable.

@blueyed
Copy link

blueyed commented Jan 29, 2014

Agreed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants