Open nils-tekampe opened 7 years ago
Mouse controls for Blink, whether on tmux or other apps is a must. Changing the title.
Yes, it would be a great to have feature. Especially with tmux scrolling with mouse mode on.
Mouse controls would be fantastic for the Micro Text Editor https://github.com/zyedidia/micro
I just wanted to ask whether there are any plans on this feature. Any idea whether/when it will be implemented?
Basic touch reports are in testing now (TestFlight). And we hope will be released in a week or so.
We are currently limited to clicks. So tmux panel selection is working. But selecting text and scrolling are tricky to implement, because they conflicting with general scroll and text selection. We can’t figure out the best way to do it yet.
If you have any suggestions, please share.
Great to hear that! For scrolling I would think that a two finger swipe could help to figure out whether the user wants to scroll within the terminal or the application. But I have no idea, how I would implement the text selection part. For me it would be OK if I would be required to double-click with two fingers or so before I can actually select text within a terminal. But I'm not sure whether this is really intuitive.
Two thinger swipe is for kb dismiss and control panel. Also two fingers tap open new session. Also two fingers drag sometimes conficts with zoom. So we should find better solution.
I see. Seems to be really tricky, what about a “catch mode” similar to how Parallels or VirtualBox work. As long as I’m caught in the terminal, all mouse gestures go to the terminal. If I want to control the app, I have to release the mode first (e.g. by the use of a certain gesture or button). Definitely less intuitive but could work.
“Catch mode” could be interesting, that would allow you to use familiar gestures for scrolling (one/two fingers) without interferring with the rest of the app. Failing that even just a 3 finger scroll would be ok with me and just scroll whatever pane has focus. Personally tmux scrolling is more important than selection, I’m quite happy just making a panel fullscreen and selecting text using the normal methods.
Not bad :-) Can I also click in to the separate windows to set the focus for the cursor to them?
@nils-tekampe you can do that in current version already. Just tap on the pane you need to focus on.
Great to hear. I stopped using blinksh after I learned that his was not working in the version that I tried at this time. Will give it a try later!
It seems that this issue and #119 #566 #584 are all about the mouse scroll support. Which one should we use to track the progress?
Hi I have mouse clicks working with this in VIM (set mouse=a). I am wondering if a meta key for scrolling was ever decided on? Can't seem to locate anything.....
Editing now:
I just added:
set mouse=a " tell vim to recognize mouse commands in "all" modes
set ttymouse=xterm2 " tell vim you're using xterm, this isn't necessary but I believe improves performance
set ttyfast " improve fluidity of mouse commands, this isn't necessary but I believe improves performance
set paste " don't mess up the indenting of pasted text
vmap
To my .vimrc and can two finger scroll in files and file browser. Thanks a million blink.sh team!!
One mouse control that is still missing is drag, e.g., to select text in split tmux panes rather than in the whole terminal. I understand that this conflicts with text selection, but I wonder if it would be doable with some modifier key to override the selection and instead just pass the dragging to the terminal? This behaviour could even be made invertable, i.e., pass by default and only select if a modifier is held…
I think an option to disable text selection or make it only work with a modifier would be very welcome as it conflicts with the following tmux functionalities:
i'm surprised to see this dead after three years. mouse drag is so crucial for me in vim and tmux. is there any chance there might be an update on that? currently iSH has it implemented pretty well but i'd much rather use blink for its simplicity...
Honestly, we haven't gotten much requests for mouse drag controls. Most people just use the keyboard for that, plus it creates a mode (need to disable selection so all input will go to the remote).
That being said, we are moving to a different terminal emulator and this should be tackled then.
I will separate in a different issue so this is more specific.
Just adding myself here because I’d really like Blink to have full mouse controls. As soon as I’ll be able to drag pane split line in my tmux session with the trackpad of my Apple hardware keyboard I’m happy! Any news on this, @carloscabanero? 😳 Finished the “move to a different terminal emulator” already? And which issue should I track to stay informed on this topic? 🙏
No, moving to a different terminal emulator has not been started yet and it is not an easy task. Other critical components like Keyboard, UI, gestures, etc... depend on it.
Adding to this, the only mouse controls not working are the drag operations. These also collide with selection, and if I recall we would need to have a special mode to implement them.
This is a good issue to track. Once it becomes a priority, when there are multiple issues that can be closed at the same time by a "parent" issue, I try to keep all of them updated.
Hi, I love your app! brings me a real terminal to my iPad :-) I often use MOSH to cope with limited bandwidth and frequent interrupts in our mobile networks and have tmux running on my server. tmux splits the screen in multiple panels and one can enable mouse control to use the mouse to select the currently active panel. However, this does not work via blink. Is there anything special in mouse controls? Or can I do anything to makes this work? Thanks Nils