Pasting multi-line text as single item


#1

I appreciate that when I paste multi-line text from the clipboard, Dynalist creates a separate item for each text line.

But sometimes I really want that multi-line text to be a single item and not a note.

Examples:

  • Additional information to an item that semantically does not warrant to create a separate item, but also is not a note.
  • An important multiline code block that I don’t want to hide away in a note.

I know I can manually start a new line using [Ctrl]+[Shift]+[Enter], but pasting text as multiple items and then manually “stitching” them back together into a single item gets tedious fast!

My suggestions:

  • A keyboard shortcut that pastes text as mulit-line text with soft line breaks. (E.g. [Ctrl]+[Alt]+[Shift]+[v]).
  • Or whenever pasting text, interpret the ASCII control character ‘Vertical Tab’ (0x0B) as soft line break, like e.g. Microsoft Word does.

#2

Interesting QoL request. Seems like a niche use case though, have you thought of writing a keyboard macro or something? Not saying you should, just curious.

Also this reminds me of this feature request: https://trello.com/c/2t0soCIT/78-merge-multiple-items-into-one, if you can merge with newline rather than by space (the default).


#3

Funny you should ask … in fact I did write an AutoHotkey macro that pastes the clipboard content line by line, ending each line with a soft line break by sending the [Ctrl]+[Shift]+[Enter] shortcut.

But that shortcut for the soft line break, does not work 100% reliably on my two systems. Sometimes it is ignored and requires me to press it again. But it does not happen consistently.

E.g. (this works quite frequently)

  1. Create a new item.
  2. Press the [a] key to type an “a”.
  3. Press the [Ctrl]+[Shift]+[Enter] shortcut to insert a soft line break. => Nothing happens; the cursor stays in the same line as the “a”.
  4. Press the [Ctrl]+[Shift]+[Enter] shortcut again, and now the cursor jumps to the next line.

#4

Let’s see if anyone else needs this then! :innocent:


#5

Sure, but could you investigate why that keyboard shortcut does not work every time?

I tried it on 3 different computers (Windows 10) and 2 different browsers (Chrome, Edge) with the same result:


#6

That’s this bug: Blank lines at start of note skipped by Up arrow

Basically browser only renders the newline when there’s an existing newline at the end.

We’ve investigated this issue before, and it’s a browser behavior that we need to do extra work to work around, not because we did something wrong. It’s quite some work, and to properly fix it, we need to backfill everyone’s existing content too.

Sorry for the delay in fixing this!


#7

Hi, I’m struggling to paste multiline text in the single bullet. I basically want to paste this in a single bullet.

“files.associations”: {
"*.txt": “json”
}

I tried entering spaces first and then entring the code but it failed.
then I tried pasting it first and then decorating it with code. which should by default removes the bullets and make it in a single bullet but it is not happening either.
I’m using latest chrome browser on Win 7 as of now.


Multi-line code blocks
#8

I also find that this would be useful. It happens to me quite often to have to stitch together copy-pasted content that gets distributed over many nodes.


#9

Yeah, sorry multiline paste only works in the note field right now.


#10

Related feature request: https://trello.com/c/2t0soCIT/78-merge-multiple-items-into-one

This feature request is good for other scenarios too, when you didn’t copy paste and just want to merge a few items into one.


#11

This bug still hits me sometime. Deleting and pasting again usually does the trick, but sometimes it still fails the first time!