8000 WIP: Fixing window configuration issues by enzuru · Pull Request #119 · sunrise-commander/sunrise-commander · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

WIP: Fixing window configuration issues #119

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

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

Conversation

enzuru
Copy link
Contributor
@enzuru enzuru commented Nov 22, 2021

I know this isn't a clean PR yet and has some hacks, but I just wanted to get it out there. These changes have gotten Sunrise Commander to exhibit most of its old behavior in terms of restoring panes. Some of the bugs I am trying to fix are documented in #115

Basically, on Emacs 28, Sunrise Commander has the current bugs:

  • Constantly creates new panes and never reuses old ones
  • Never remembers the pre (sunrise-toggle) window configuration
  • Copying/moving/etc between panes is completely broken

This PR mostly fixes these things.

Some things are wrong though... like, we should be opening the active pane directory based on the currently active buffer, I think. And some of my work in sunrise-quit is redundant. And I don't think I'm focusing on the right buffer for the "view panel".

@enzuru
Copy link
Contributor Author
enzuru commented Nov 22, 2021

@vspinu maybe try this branch out and let me know how it goes. Not perfect yet....

@enzuru enzuru changed the title [WIP] Fixing window configuration issues WIP: Fixing window configuration issues Nov 22, 2021
@enzuru
Copy link
Contributor Author
enzuru commented Nov 25, 2021

So I 8000 think what is going on is that Sunrise is not aware that it was opened prior, and keeps creating new windows. That is why my hack kinda "works". The real fix is for Sunrise to be able to find its old panes if they still exist.

@enzuru
Copy link
Contributor Author
enzuru commented Nov 26, 2021

Pushed a few commits that removed some hacks and got things to be much more stable (changing pane layout now works again!) Additionally #118 should be fixed now too.

Panes are still being remade whenever the pane layout switches, however, so there is still some work left.

(or (sunrise-quit) (sunrise-show)))
(or (sunrise-quit) (sunrise-setup t)))

(defun sunrise-setup-windows ()
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This function used to exist before the refactor and parts of the code still call it... I tried to re-add it back in as a way to repaint the panes. I suspect there is a better way to repaint panes instead of essentially restarting Sunrise, but that's the hack I did for now.

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

Successfully merging this pull request may close these issues.

1 participant
0