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

F9 does not auto advance when it's at the last line #3293

Closed
anhqle opened this issue Jul 15, 2016 · 5 comments
Closed

F9 does not auto advance when it's at the last line #3293

anhqle opened this issue Jul 15, 2016 · 5 comments

Comments

@anhqle
Copy link

anhqle commented Jul 15, 2016

Description of your problem

What steps will reproduce the problem?

When the cursor is at the last line of code, F9 will execute that line but does not advance to a new (blank) line

What is the expected output? What do you see instead?

F9 should always advance to the new blank line given the interactive data analysis workflow. I expect to be able to write new line of code, hit F9 to execute and advance to a new line at the same time. (Rstudio also has this behavior).

Currently, the analyst has to write, hit Enter to advance to a new line, then after a while go back to execute all the lines that have just been written. The third step is unnecessary and breaks the workflow.

Versions and main components

  • Spyder Version: 3.0 beta
  • Python Version: 2.7
  • Operating system: Ubuntu 14.04
@ccordoba12
Copy link
Member

Just to be clear: what you're asking us to do is to make F9 to create a new, empty line when the cursor is at the last line of a file?

@anhqle
Copy link
Author

anhqle commented Jul 15, 2016

Yes! And thanks so much for making F9 auto-advance. It single-handedly convert me to use Spyder regularly.

@jitseniesen
Copy link
Member

Makes sense to me, though maybe we should change it to: make F9 create a new, empty line when the cursor is at the last line of a file, if that line is non-empty.

That should not make a difference in the situation that you are thinking of, where you are writing a script and executing it at the same time.

However, when you are executing line-by-line a script that is already written (which is the situation we were thinking of when implementing the auto-advance), you probably don't want extra lines added to it when you hit F9 too often.

@anhqle
Copy link
Author

anhqle commented Jul 15, 2016

@jitseniesen That's even better!

@ccordoba12
Copy link
Member

@jitseniesen, could you work on this one?

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

No branches or pull requests

3 participants