rougier / nano-sidebar

Emacs package to have configurable sidebars on a per frame basis.
GNU General Public License v3.0
127 stars 6 forks source link

no sidebar displayed in emacs 28 #6

Open titaniumbones opened 2 years ago

titaniumbones commented 2 years ago

might be related to #5 , as I use tabs extensively, but it also seems to apply with tab-bar-mode turned off.

here's my use-package:

(use-package nano-sidebar
  :ensure nil
  :defer t
  :quelpa (nano-sidebar
           :fetcher github
           :repo "rougier/nano-sidebar")
  :commands (nano-sidebar-toggle))

running nano-sidebar-toggle and stepping through, it appears that the sidebar frame already exists, but I am unable to find it or switch to it using frame-next. For instance, i nmy current session (frame-list) gives:

(#<frame emacs@anarres 0x556cc03b42e8> #<frame NΛNO sidebar 0x556ccf3a9bd8> 
#<frame *elfeed-search* 0x556cc179fe50> #<frame /home/matt/WDW235/Announcements.org 0x556cc014f870> 
#<frame emacs@anarres 0x556cbb030140> #<frame  *Minibuf-1* 0x556cb9ef9c00>)

Since I don't understand the underlying tab implementation, I worry that there's some interference between those levels. I don't understand the frame internals well enough to test effectively, either.

Thanks!

titaniumbones commented 2 years ago

I believe this is a wayland bug, or, rather, the expected wayland behavior. Frame parameters work differently under wayland than with X, so the hardcoded left parameter ends up shooting the frame offscreen on my laptop. Setting that to 0 makes the sidebar visible.

Stlll having trouble getting anything to loadi n there, though, and I find the minbuffer is obscured by the sidebar rightn ow. Will report when I know something!

rougier commented 2 years ago

Maybe the side positioning suing negative coordinates was a side effect that has been fixed. Could you test different values for the x corrdinates in the code to check if it is the case?

philipsd6 commented 1 year ago

FWIW, this is still affecting me with the latest emacs (30.0.50) on Wayland. I've experimented with various values for left and as @titaniumbones said, 0 makes it visible, but it overlays the current window in the current frame obscuring everything on the left side the previously visible window. If I increase left by a positive number, it starts to creep across, still obscuring my window. If I set left to a negative value, i.e. -10 it then goes over to the right of my window and obscures that side, and decreasing that negative number to say, -1000 makes it move farther left, until it disappears.

So I don't know how this is suppose to work, but I was expecting to be able to toggle the sidebar and have it appear to the left of my current window/frame, without changing the width of my frame or obscuring its contents.

rougier commented 1 year ago

Sorry for latex answer. Could you post (here) a screenshot when left is -10 and -100?