ahrm / sioyek

Sioyek is a PDF viewer with a focus on textbooks and research papers
https://sioyek.info/
GNU General Public License v3.0
7.17k stars 236 forks source link

[Enhancement] Create table of contents manually #244

Closed ghost closed 2 years ago

ghost commented 2 years ago

Hi ahrm

This is a feature request/idea.

Some of the papers have weird layout and the table of contents is empty or incomplete (accessed via pressing "t"). It would be great if similarly to pressing "b" to create a bookmark, one could add table of contents elements manually when skimming a paper for the first time. But I think it might be difficult, particularly in the case where the toc is incomplete, because one would have to be able to sort the elements in a specific order manually. (I assume the ordering framework doesn't exist, as it's also not possible to order bookmarks in a specific order other than by which they were created.)

I'm on MacOS 12.4 Monterey using sioyek 1.3.

Thank you and kind regards 13-916-564

ahrm commented 2 years ago

I think this feature is a little too niche to implement. I recommend using bookmarks for this purpose. You can sort bookmarks based on their location, you have to add this to your prefs_user.config:

sort_bookmarks_by_location 1
ghost commented 2 years ago

That's what I've been doing. Didn't know about the sorting option by location. Thank you!