Reputation: 1
I am creating a plugin for sublime 4 on Ubuntu 22.04. The plugin uses pyclip (https://pypi.org/project/pyclip/) to copy text from the "clipboard" and perform certain formatting functions on the text before inserting it into the current views edit buffer.
Note: For this to work on Ubuntu you need to have xclip or xsel installed. I am using xclip
The standard use case is:
This works great whenever the source program is a browser, another text editor, a spreadsheet, etc. HOWEVER, if the source of the text copied to the memory buffer in the cut-and-paste operation is sublime, then the function being called in the plugin to get the text, pyclip.paste(text=True), never returns and the only way to proceed is to restart sublime.
If anyone has any ideas what the issue may be it would be greatly appreciated!
I have dried this with pyperclip instead of pyclip, and with xsel instead of xclip. The problem is exactly the same. If the source program for the copy and paste operation is sublime, then sublime freezes. I have also tried this on ubuntu 20.04 and have the same results.
Upvotes: 0
Views: 42