1) need normal selection when micro running in TMUX (keyboard selection not work)
2) need normal selection lines by just shift+up arrow for selecting previous line
and shift down arrow for selecting next line (like in Sublime Text)
You can use micro -version to get the commit hash.
Commit hash: be81241
OS: linux
Terminal: tmux
If I understand correctly you need different key bindings for selecting lines up and down from the current location.
Default keys for this is ShiftUP and ShiftDown.
You can change any key bindigs to any action supported by micro by changing the config file ~/.config/micro/bindigs.json.
micro ~/.config/micro/bindigs.json
Add below to ~/.config/micro/bindigs.json
{
"CtrlUp":"SelectUp",
"CtrlDown":"SelectDown"
}
For more info in micro editor type
Ctrl E
help keybindings
Hope this will help you.
i make mistake
i need keys - shift up and shift down
but its not work correct as in Sublime Text now
Same problem... I use tmux in ssh (mobile-shell) session.
When I Press Shift-arrow, cursor just stalls, no reaction.
When using just ssh in mintty (w/o tmux) selection works just fine
Local OS: Windows 8.1
Remote OS: Ubuntu 17.04
Terminal: tmux in mintty
commit hash: fad95c0
try adding setw -g xterm-keys on in ~/.tmux.conf
not work
Linux ubuntu16 4.4.0-87-generic x86_64 x86_64 x86_64 GNU/Linux
For a quick fix, just run export TERM=xterm-256color. I'll have to look into the underlying reasons for why this issue is happening.
Having this same issue. Running XFCE terminal on Xubuntu. I tried manually adding a bindings.json with the following text:
{
"ShiftUp": "SelectUp",
"ShiftDown": "SelectDown",
"ShiftLeft": "SelectLeft",
"ShiftRight": "SelectRight"
}
ShiftUp and ShiftDown don't work for selection, but for some reason ShiftLeft and ShiftRight do. I also tried executing >bind ShiftUp SelectUp in micro but that didn't work either. Oddly enough, If i changed the keybinding to something else like >bind AltUp SelectUp it would work perfectly. What could be the problem here?
Are you running inside tmux? Different terminals send different sequences for different events. It's possible the terminal you are using just doesn't send an event for ShiftUp and ShiftDown.
I'm running the xfce4-terminal. So I should look in the XFCE documentation for how they send keypress events?
maybe i'm runnig xfce4-terminal too.
Different terminals send different sequences for different events.
Then which terminal works well with tmux + micro ? terminal from GNOME Shell or KDE ?
I realize this is an old issue. I ran into something similar with ShiftLeft and ShiftRight on Konsole in KDE. Turns out Konsole was consuming Shift-Left / Shift-Right as a shortcut for Previous Tab / Next Tab. You might want to check if the application or DE shortcuts are intercepting the keystrokes that aren't working.
Konsole's keyboard shortcut window and this StackExchange question helped me realize the problem.
Why is this issue closed? After setting TERM=xterm-256color now Shift + Arrows works, but for e.g. Shift + Delete (cut) throws a [3;2~.
Version: 2.0.6
Commit hash: 60846f5
Compiled on June 25, 2020
Windows 8.1, putty, tmux - Shift+Arrow don't work. With export TERM=xterm-256color too.
With manual binding (bindigs.json) - don't work.
Without tmux - don't work.
Remote OS: Debian 10
Version: 2.0.6
Commit hash: 60846f5
Compiled on June 24, 2020
upd: found old comment https://github.com/zyedidia/micro/issues/336#issuecomment-286477540 about KITTY. Works without tmux. Otherwise [1;2D[1;2A[1;2C[1;2B[1;2D]]]]]
Most helpful comment
For a quick fix, just run
export TERM=xterm-256color. I'll have to look into the underlying reasons for why this issue is happening.