orgmode icon indicating copy to clipboard operation
orgmode copied to clipboard

Add option to disable strikthrough highlighting with + +

Open gerazov opened this issue 2 years ago • 9 comments

Does this feature exist in Emacs orgmode core?

N/A

Orgmode link

No response

Feature value

It's convenient to use + when writing tasks or even when writing maths, e.g.

- the tool provides fast use + robustness to user input + community support

or

- total: 100 + 20 + 30 = 150

And this gets things striked through which is not really good as it becomes less readable.

image

I know that orgmode defines this for markup, and we're trying to stick to the specs, but it would be really useful to be able to turn it off.

In general, with checkboxes [X] and marking tasks as DONE, having the ability to strikethrough might be redundant. Not to say that I never have really needed to strikethrough something (and not just in orgmode :sweat_smile: )

Additional context

Also / for italic is bit problematic as it's in websites and file paths, but it's less intrusive.

As a side note I have a cool snippet that allows me to do calculations using qalc on selected maths - it might be worth having it somewhere in the docs :slightly_smiling_face:

"calculate selected formula
"take current line and run it through qalc
nnoremap <leader>sc yy:read !qalc "<C-R>""<CR>kdd 
" take current selection and run through qalc
vnoremap <leader>sc y:read !qalc "<C-R>""<CR>f="ay$ddk$a <Esc>"ap

gerazov avatar Jun 15 '22 10:06 gerazov

Yeah, that happened to me to. We should expose that as an option: org_strikethrough_sequence.

Regarding that snippet: perhaps not directly in the docs, but we could establish a place for cool nvim-orgmode tweaks / oneliners / whatever that may be usefull to others. Similar to how nushell does this

jgollenz avatar Jun 15 '22 10:06 jgollenz

Cool idea! Maybe we can have a snippets section on https://nvim-orgmode.github.io/ ?

gerazov avatar Jun 15 '22 11:06 gerazov

Are you using latest master? This should not be happening if there spaces around the + sign, I fixed that some time ago:

sceenshot

kristijanhusak avatar Jun 15 '22 12:06 kristijanhusak

I just updated and I get the same behavior :thinking:

gerazov avatar Jun 15 '22 16:06 gerazov

How are you exactly setting up orgmode? I reproduced it with minimal_init.lua when I ran it, but this minimal_init also runs packer each time and loads the plugin manually. Once I updated minimal init to not run packer, since it installed everything first time, it started working fine.

Try replacing last tree lines:

load_plugins()
require('packer').sync()
vim.cmd [[autocmd User PackerCompileDone ++once lua load_config()]]

with this

load_plugins()
load_config()

and see if it works.

Edit: Try updated minimal_init https://github.com/nvim-orgmode/orgmode/blob/master/scripts/minimal_init.lua

kristijanhusak avatar Jun 16 '22 08:06 kristijanhusak

I'm using Vim Plug ... I'll look into it :+1:

gerazov avatar Jun 16 '22 11:06 gerazov

@gerazov is this issue still relevant?

jgollenz avatar Feb 25 '23 23:02 jgollenz

Yeah, I changed to packer recently and the problem persists.

image

With the minimal config as instructed by @kristijanhusak it's ok.

image

So I don't know what's wrong, maybe close for now :slightly_smiling_face:

gerazov avatar Feb 27 '23 09:02 gerazov

Weird. Sadly the only way to be sure what's going would be to toggle your other plugins on individually and see which one is the culprit :(

jgollenz avatar Feb 27 '23 10:02 jgollenz

These issues should be solved. If it happens it's probably caused by some conflicting plugin.

kristijanhusak avatar Feb 26 '24 19:02 kristijanhusak

Still persists on my side but I'm ok with cleaning it up - it seems I'm the only one experiencing it and it's no biggy :+1:

gerazov avatar Feb 27 '24 14:02 gerazov