Skip to content
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

Over highlights #745

Open
Mickychen00 opened this issue Jun 16, 2023 · 9 comments
Open

Over highlights #745

Mickychen00 opened this issue Jun 16, 2023 · 9 comments

Comments

@Mickychen00
Copy link

I originally wanted to highlight only the selected portion, but in many documents, the entire line where the selection is located gets highlighted. What should I do in this case?

@ahrm
Copy link
Owner

ahrm commented Jun 17, 2023

Does adding this to your prefs help? :

exact_highlight_select 1

@Mickychen00
Copy link
Author

Mickychen00 commented Jun 18, 2023

Hi, yes it works! Will it be a default setting in sioyek's future version? I think it's a common demand for most of users.
And I didn't found this config in the doc through searching.

@ahrm
Copy link
Owner

ahrm commented Jun 18, 2023

There is a pull request about this which probably will be included in the next version of sioyek: #742 .

@Mickychen00
Copy link
Author

Thanks a lot! One more question: Is there a function or method to export my highlights from a specific document not the whole highlights database?

@ahrm
Copy link
Owner

ahrm commented Jun 26, 2023

If you mean into a json file then no, currently there is no way to do that. However, you can use the embed annotations extension to embed the sioyek annotations into current PDF file.

@Mickychen00
Copy link
Author

OK. Will there be a function about it in the future? In terms of highlights, I often highlight some words or sentences to further memorize. If we can export these highlights to text, csv or some filetypes else, I think it will be wonderful.
Is it a technical obstacle for this function? Or doesn't it fit Sioyek's philosophy?

@ahrm
Copy link
Owner

ahrm commented Jun 26, 2023

Is it a technical obstacle for this function? Or doesn't it fit Sioyek's philosophy?

No I just didn't think it would be necessary since you can just extract the highlights from the global export file. It will probbaly be added in the next version.

@Mickychen00
Copy link
Author

Thanks a lot. To be honest, a global export file using json may be a little geeky for basic users despite knowing something about vim actions. A markdown version of the exportation for the highlights or text in a single pdf file may be user-friendly. An awesome reader.

@paulbrodersen
Copy link

I often highlight some words or sentences to further memorize. If we can export these highlights to text, csv or some filetypes else, I think it will be wonderful.

For a while I used an emacs macro to edit the JSON down to the desired highlight descriptions. Eventually, though, I made a small python script instead. Gist available here.

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

No branches or pull requests

3 participants