I’m still noticing, when pasting from other sources that have tab-indented text (like Logseq and some other outliners), I get messed-up indentation in Inkdrop.
Is there something I can do inside Inkdrop to handle pasting of these tab-indented sources, or do I have to manually switch out tabs for double spaces before pasting? My current tab size/indent unit is 4, but switching that out to 2 doesn’t make a difference.
@J_N
Inkdrop does not convert tabs into spaces when pasting.
Do you mean changing the tab size does not work?
Why does the second line start with - - and why does the line “A” not have a dash? How do you paste it?
This is the behaviour I’m seeing, and it seems to vary with apps I’m pasting from. There seems to be a difference between ⌘C + ⌘V pasting and Pasting as plain text ⌥⇧⌘V.
TextEdit/Sublime
- Point A
- Subpoint A
- Sub-subpoint A
- Point B
- Subpoint B
- Sub-subpoint B
Nothing fancy, just tab-indented text, ends up in Inkdrop like this:
There’s some kind of invisible indentation happening because a) the syntax colour is different for every line, and b) the dashes aren’t perfectly aligned. Preview seems to render correctly.
Logseq
If I do Paste as plain text ⌥⇧⌘V, I end up with the same result, but if I simply do ⌘C + ⌘V, then I end up with this:
All the dashes you see here are indented by 2 spaces, even though my settings in Inkdrop are Indent unit:4 and Tab size: 4.
Bottom line is, no matter what I do, I can’t seem to get tab-indented text into Inkdrop correctly. I’m guessing for now, manually changing tabs to spaces is the only option?
Regarding pasting from Logseq, it copies the list as plain text and HTML. When pressing ⌘V, it tries to convert the HTML into Markdown but the HTML structure is not identical to the original list structure. So, that’s why it only works properly with ⌥⇧⌘V, which pastes plain text from the clipboard.
Unfortunately, the library for converting HTML to MD does not support specifying the indent size.
Yeah, I think the app should convert tab indentations to spaces when pasting plain text.
Thanks again for the feedback!
Tabs convert correctly to whatever config I have set for indentation (I’ve tried changing from 4 to 2 and back again, and it looks like it works), so this is good.
HTML
still uses 2 spaces, so consistent behaviour with what you’ve explained about HTML → MD.
Rich text
Still getting double dashes when pasting from rich text, i.e. from Apple Notes (see below).
If I paste rich text with ⌥⇧⌘V, I’ll get varied results depending on source application, but I guess that’s a different issue.