-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cut command is very slowly on Windows Terminal #3280
Comments
Hi In my Windows setup I wanted to delete the current line or all partially selected lines (my version of wordstar yank block ^KY):
function delsel(Current)
-- Please see the Ctrl+Y binding. This avoids deleting EOL
if Current.Cursor:HasSelection(Current) then
Current.Cursor:DeleteSelection()
end
end
Kind Regards Gavin Holt |
I paste the following line in the bindings.json:
Then I create ~/.config/micro/init.lua file, and insert the following rows:
Now , when I press ctrl+k, the the following error message appear:
|
Hi Sorry try: function delsel(Current)
-- Please see the Ctrl+Y binding. This avoids deleting EOL
if Current.Cursor:HasSelection() then
Current.Cursor:DeleteSelection()
end
end Kind Regards Gavin Holt |
Thx. Working great. But it wouldn't be bad if the deletion would also work with the Cut command when pressed for a long time, as in the case of a Linux terminals. |
I use micro in Windows 10 with Windows terminal preview 1.20.10822.0
When I open file for edit in micro, then I hold down the CTRL+K key, it doesn't continuously delete the lines, but does nothing. When I release it, it deletes one row. If I use the nano program, there is no such problem.
I tried with the following version:
$micro --version
Version: 2.0.13
Commit hash: 68d88b5
Compiled on October 21, 2023
$ micro --version
Version: 2.0.14-dev.155
Commit hash: 5510317
Compiled on April 23, 2024
bindings.json:
The text was updated successfully, but these errors were encountered: