Thank all of you very much for your enthusiastic responses.
I think this is a critical issue that needs to be addressed. I didn’t use a code editor like word or Notepad++ to clean it up.
I find it really annoying when copying a copy of text to go back and use another program and then copy it all over again.
My current solution is to use the quicker software to work with the nodejs version of tiddlywiki, and then implement the ability to save tid text directly to the corresponding folder when editing.
剪藏 - 动作信息 - Quicker (getquicker.net)
The above solution solves 80% of my needs, but I still want to solve this problem completely in tiddlywiki.
As for the text, I copied it randomly. Because copying from a random web page or pdf file is very likely to show the above situation.
Using the codemirro plugin is really nice, but there are several problems.
The first is the problem of input method. I need to switch the input method and then can operate, which makes my editing experience is not good at all. The second one is that I need to clear line breaks and then also clear spaces. Very inconvenient. These two operations are what I often have to do, so I might as well make a macro to handle them more easily.
So I need a plugin and then a button in the edit bar where I select some text, single line or multiple lines, and then click that button so that it clears the spaces or line breaks in my selected text.
But notice that I’m not trying to generate a new tidder file. Rather, I am editing the current entry to achieve this. I don’t know if this can be done.
Or another way. When I exit the edit state, there is a button on the page that I click to clear the spaces and line breaks in it. That would be acceptable to me.
Again, thanks for the responses.