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

WIP: Improve buffer switching #409

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

blueyed
Copy link
Collaborator

@blueyed blueyed commented May 4, 2015

Based on suggestions and discussion in #408

@blueyed
Copy link
Collaborator Author

blueyed commented May 10, 2015

Tests are failing, because the behavior changed.

Before adjusting them, I'd like to get feedback on this.

@davidhalter
Copy link
Owner

Since this would be a change with big impact, I really need to play with it first. I don't have time for the next few days, so it might still take a while.

@blueyed
Copy link
Collaborator Author

blueyed commented May 11, 2015

Sure.
Rebased it on master, and fixed a bug where it would not jump to the line in a new file.

@davidhalter
Copy link
Owner

Since we have started the discussion in #408, I will continue it there.

It should use the same code path/logic.  Apart from that, `:tab drop` is
also available in non-GUI Vim.
This adds `jedi_vim.edit_buffer`, factored out of `new_buffer`, and
`goto` uses it.

Ref: davidhalter#408
It was passed around, but never used really.

The only place would have been `:Pyimport`, but that command definition has
`-nargs=1`.
This will only write the buffer file, if the buffer has changed.
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

Successfully merging this pull request may close these issues.

2 participants