-
Notifications
You must be signed in to change notification settings - Fork 93
Ability to send text messages #225
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
Conversation
M0-find-U
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Beenden
"Delete all" |
|
|
Hi, I tested this out, some feedback:
I'd like to wait for @clefebvre's opinion on all of this stuff though - opinions tend to vary :) Thanks! |
|
Same as @mtwebster, I think it's better to have an entry at the bottom. To show the message in the window, you can hide more columns. You don't need to mention "Text message", a chat bubble icon would be explicit enough imo. |
Display text message as a transfer in UI, show notification, allow copy text
Send message button and dialog
bbaa824 to
4c29444
Compare
4c29444 to
0b8b3f4
Compare
0b8b3f4 to
037f530
Compare
|
Thanks, trying this now. I'll have a look at the label issue also. |
|
I see what you mean about the label height. It's possible the 'correct' behavior (set There's an issue with the fixed width of the text box, I'm not sure that's necessary - I don't think we need to be too strict with how many lines actually end up getting shown as long as we put some limit on newlines (so long lines can wrap, and unwrap if the user resizes the window). |
|
Simplified the label a bit and added url detection: We can see how this goes and adjust things if we need. Thanks a lot! |








I've added the ability to send and receive text messages. This could be useful for quickly sending URLs and tokens between devices and would fix #105

The messages can be selected and copied (selection, or whole message using the button). Up to 4 lines or first 120 characters are shown, although sometimes 4 lines can be exceeded due to wrapping. Unfortunately I did not figure out how to convince Gtk to properly ellipsize it, suggestions are welcome. Wrapping the text manually by inserting newlines looks the best, but then selecting and copying a part of it also includes the newlines... Another option would be to put the label in a ScrolledWindow, but I don't think that looks good. I think limiting the visible length in some way is needed to avoid having one message take up the whole window.
It also shows a notification:

I will add an identical feature to the Android and Windows versions later.