Skip to content

Change focus when current list is empty #1165

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

Closed
wants to merge 1 commit into from

Conversation

rongyi
Copy link

@rongyi rongyi commented Mar 8, 2022

This Pull Request fixes/closes #{issue_num}.
this is a feature enhancement.
It changes the following:

  • Change focus when current workdir or staging area list is empty.
    Most of the time, when I staging all the files, the next step is to commit, in current version I need to press the arrow down key or 'w' to change focus manually. But I think gitui can change focus for me :) , that is when current list is empty just try to change focus. I don't know this is a feature other people need too. If not, just close this pr.

I followed the checklist:

  • I added unittests
  • I ran make check without errors
  • I tested the overall application
  • I added an appropriate item to the changelog

@@ -412,6 +412,7 @@ impl Status {
.unwrap_or(RepoState::Clean);

self.branch_compare();
self.update_status()?;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have to look deeper into this, why Is this needed?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@extrawurst
Copy link
Collaborator

bug report for this: #1169

@extrawurst
Copy link
Collaborator

this solution behaves odly when one switches focus back to the empty work space:

Screenflick Movie 45

@extrawurst
Copy link
Collaborator

superseded by #1170

@extrawurst extrawurst closed this Mar 9, 2022
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