cvfosammmm / Setzer

LaTeX editor written in Python with Gtk
https://www.cvfosammmm.org/setzer/
Other
392 stars 35 forks source link

Only one file showing in the document structure #310

Closed JustusLatzer closed 1 year ago

JustusLatzer commented 1 year ago

When I open multiple files or create new ones, even though they are showing in the top drop-down menu, they are not showing in the left-hand document structure panel. There it only shows the file I opened first or - if selected - the "main" file. It's not a huge problem as I can just use the shortcut to flip through the files but it would be cleaner if it showed all my files there. I am using Fedora 37 and installed Setzer (version 0.4.8) with dnf using the distribution provided repository (fedoraproject.org).

Edit: It seems that this behaviour stems from using special characters in the filenames (in my case it's "-", e.g. my filename is "ch-Abstract.tex"). When using filenames without the dash it works just fine.

evamvid commented 1 year ago

can you post a screenshot of the issue? as far as I know the left-hand document structure navigator only shows files that are included in the current document (for example using /subfile{}). I might be misunderstanding which panel you mean though.

jackmcellin commented 1 year ago

I was able to recreate the issue using 0.4.8 by having a main.tex document and using \include{ch-Abstract}. The filename disappears from the sidebar after you type in the hyphen.

When I build Setzer from master (3f88efe) now, the issue is no longer present. It looks like the bug was fixed in commit da6c1b9, so I think you can close this issue. Hope this helps!

cvfosammmm commented 1 year ago

Ok, thanks for checking.