block paste #177
Replies: 8 comments 4 replies
-
Yes, make a new rectangular selection where you want to paste over, and then do the paste. Scintilla (Textadept's editing component) does not do "rectangular paste" into an empty selection.
|
Beta Was this translation helpful? Give feedback.
-
You need to block select the column of letters and then paste. The column will be replaced with numbers. If you create a zero-width block selection before the letters and paste, the column of numbers will be inserted before the letters. The trick is that you need to paste *into* a block selection, not a single selection.
|
Beta Was this translation helpful? Give feedback.
-
Okay, I'll try this on macOS when I have a chance. I did my tests on Linux.
|
Beta Was this translation helpful? Give feedback.
-
It looks broken on macOS. It's likely a Scintilla bug that I'll have to dig into and submit an upstream fix for. A workaround is to make the selection and then use the command entry to run:
replace_rectangular(ui.clipboard_text)
|
Beta Was this translation helpful? Give feedback.
-
Okay, this is silly. It's not a bug in Scintilla, but a shortcoming on macOS. Scintilla has a method of storing rectangular selections on the system clipboard, but macOS does not support this method. I have updated Textadept's manual on this topic[1]. Sorry about that :(
[1]: 241e283
|
Beta Was this translation helpful? Give feedback.
-
Bummer! I’ve been using the workaround command replace_rectangular(ui.clipboard_text) but I often type it in wrong so have to start over.
How can I assign the command to the keys command-shift-v? I tried the below but it doesn’t work.
keys['cV'] = function()
replace_rectangular(ui.clipboard_text)
end
Mark
… On Mar 17, 2022, at 11:31 PM, orbitalquark ***@***.***> wrote:
Okay, this is silly. It's not a bug in Scintilla, but a shortcoming on macOS. Scintilla has a method of storing rectangular selections on the system clipboard, but macOS does not support this method. I have updated Textadept's manual on this topic[1]. Sorry about that :(
[1]: 241e283
—
Reply to this email directly, view it on GitHub <#177 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AANUZGEROOCF3RCISFO4MFDVAP2KPANCNFSM5PI34WCA>.
You are receiving this because you authored the thread.
|
Beta Was this translation helpful? Give feedback.
-
Try `keys['cmd+V'] = function() ... end`. Textadept doesn't use abbreviated modifier keys anymore.
|
Beta Was this translation helpful? Give feedback.
-
Yes! Thanks, that does it!
Mark
… On Mar 18, 2022, at 5:51 PM, orbitalquark ***@***.***> wrote:
Try `keys['cmd+V'] = function() ... end`. Textadept doesn't use abbreviated modifier keys anymore.
—
Reply to this email directly, view it on GitHub <#177 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AANUZGFEEVW6MYDW4MYAIJDVAT3HXANCNFSM5PI34WCA>.
You are receiving this because you authored the thread.
|
Beta Was this translation helpful? Give feedback.
-
I'm sure I'm missing the obvious, but...
After copying a block selection (shift+option arrow) is there a way to paste the block?
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions