#StackBounty: #window #window-splitting #treemacs Treemacs and Transpose-Frame issue

Bounty: 50

I use treemacs to navigate files and functions, open in a panel to the left (window 1).

I also like the transpose frame package functions to change the orientation of windows, however this doesn’t play nice when treemacs is open. It can move around the treemacs panel in (almost?) unrecoverable fashion.

I think hacking a solution would work. What is the correct/most efficient way to "wrap" the transpose frame functions (like rotate-frame) with some before/after hooks such that:

  • if treemacs is open, first close it
  • then run transpose frame function
  • then re-open treemacs, only if it was open before

The function should operate normally if treemacs was never open.


Get this bounty!!!

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.