On 5 Aug 2020, at 14:20, code.by.nils(a)gmail.com wrote:
I work with large amounts of database-output (from 10
to 200 MB), that
I usually paste into a new opened TextMate window. When it is pasted,
all works as expected. But pasting takes minutes. TM freezes and it
takes much, much longer than other editors I tested (VIM, Atom, VS)
until the text is visible and useable.
What version of TextMate? The nightly builds have new backend for
clipboard history storage.
I find out, that this is caused by the Clipboard
History. I never
heard of this before and do not use it, because I have the Clipy-App
for that. Nonetheless the size of the clipboard history file was 1.3
GB. If I clear the clipboard history (control + option + command +v
and then "Clear History") everything works normally, but in my case
the CH grows really fast. So once a day I have to clear the history.
You can disable *persistent* clipboard history by running this line in a
defaults write com.macromates.TextMate
disablePersistentClipboardHistory -bool YES
It will however still keep history in memory (until a relaunch of
TextMate), so I don’t know if this will fully solve the issue for you.
In my opinion there are some solutions:
- Decoupling the pasting process and the CH process. The CH process
should run in background with lower priority.
- Adding a setting to deactivate the CH. But in this case everybody,
who use large text insertions run into this problems.
- Limit the size of the CH. But if people rely on this, that can cause
Currently it limits history only based on date and total count (30 days
or no more than 500 items): I hadn’t given much thought to size
because *ideally* it should not affect performance, given that it is
stored on disk, which is why I would like to know which version of
TextMate you are running, so I know if this relates to the new or old
If you are running 2.0.6 then please try update to latest nightly build
(Preferences → Software Update) *before* you disable persistent