nobiot / org-remark

Highlight & annotate text, EWW, Info, and EPUB
https://nobiot.github.io/org-remark/
GNU General Public License v3.0
436 stars 22 forks source link

[feature request] org-remark-mark-strikethrough #76

Open LorenRiccie opened 10 months ago

LorenRiccie commented 10 months ago

Is it be possible to customize org-remark-mark command to add a strikethrough feature ?

nobiot commented 9 months ago

Yes, you can create a new pen like this:

(org-remark-create "strike-through"
                   '(:strike-through t))

It will create a new command named org-remark-mark-strike-through.

Refer to this section of the user manual.

In this part of the introductory video, I also show and walk you through a little more detail: 03:05 Recap - create a custom pen with CATEGORY.

LorenRiccie commented 9 months ago

Thank you!

LorenRiccie commented 9 months ago

I wonder if the marginalia org file could reproduce the pen properties (color). With org-remark-mark-strike-through, the text in the marginalia org file being striked.

nobiot commented 9 months ago

Do you mean something like this? See if this works for you.

org-remark-create "strike-through"
                   '(:strike-through "red"))

"red" can be a hex color value: "#112233".

I suggest you refer to this part of Elisp manual https://www.gnu.org/software/emacs/manual/html_node/elisp/Face-Attributes.html

nobiot commented 9 months ago

If you want to change the colour of the text being striked through (instead of the line) try :foreground.

LorenRiccie commented 9 months ago

Thanks. I meant in the data .org file keeping the highlights and notes. If I striked something in the main document it will make sense to have the text striked there too.

nobiot commented 9 months ago

Can you give me an example, please?

I tend to have multiple paragraphs in my marginal notes. If i strike-through the highlight in the main file, it does not make sense to reflect it in the marginal notes to me.

For example, I may have a paragraph in the main document that contains "romanesque architecture" and I highlight it.

I then write some research notes and quotations from Wikipedia, for example.

If I strike through "romanesque architecture" in the main file for some reason, I do not want to change anything of my marginal notes.