Tobias Fella
2fc4c6456f
Escape more html
2021-10-10 12:26:35 +02:00
Tobias Fella
76675719cf
Wrap the placeholdertext in the chatbar
2021-10-09 21:17:45 +02:00
Tobias Fella
3977aee4ba
Remove usage of Kirigami.Units.devicePixelRatio
...
It's deprecated and as far as i can tell it doesn't really do anything
since it is always set to 1
2021-10-02 14:33:27 +00:00
Tobias Fella
dada3e300b
Revert "Spellchecking with new Sonnet declarative API"
...
This reverts commit 17bbc60f6f
2021-08-20 20:31:25 +00:00
Carl Schwan
17bbc60f6f
Spellchecking with new Sonnet declarative API
...
This replaces all the custom code with a shared implementation
in QQC2-desktop style
2021-08-14 20:27:11 +00:00
Carl Schwan
768fd74361
Keep completion behavior similar to before
...
* Use tab to jump to the next completion item
* Space to accept change
2021-06-17 00:37:57 +02:00
Jan Blackquill
6898670499
feat: better autocompletion UX
...
The autocompletion bar is now more similar to mainstream
chat applications, which use up/down to change the selection,
and tab to confirm the selection. An extra space is also added
to keep the flow of typing going.
2021-06-16 16:29:14 -04:00
Jan Blackquill
30965cb503
feat: ponies.im emoji support (custom emojum)
2021-06-16 15:34:55 -04:00
Carl Schwan
0ff9425fee
Add spellchecking suggestions
2021-06-10 11:29:59 +00:00
Carl Schwan
e15e10d319
Reinitialize completion list after switching room
2021-05-29 23:55:34 +02:00
Carl Schwan
c7fd5cc511
Make sure we only add non empty name or display name in autocompletion
...
list
Otherwise this will breaks when replacing names later
2021-05-29 23:13:16 +02:00
Arnav Rawat
df0ad391ba
Restore I-Beam cursor on hover
...
Should not cause issues with themes
2021-05-28 13:34:22 +00:00
Carl Schwan
3329739d55
Fix reverse tabbing not working in autocompletion
...
Now call autocomplete() also for shift+tab
Fix #377
2021-05-28 14:56:36 +02:00
Carl Schwan
d9125148fe
Fix completion when tabing users
...
This was caused by weird bindings. Now just access the userId value
directly.
Fix #324
2021-05-28 14:25:55 +02:00
Noah Davis
bbcf4239a4
Use 3 dot typing indicator, clean up code a bit.
...
Move TypingIndicator.qml out of ChatBox folder.
It wasn't part of the ChatBox.
fixes #367 by eliding instead of wrapping text
2021-05-27 14:17:22 +00:00
Carl Schwan
34da8734a2
Fix qml warnings
2021-05-23 22:55:20 +02:00
Carl Schwan
93064ec5bf
Fix username autocompletion
2021-05-23 18:38:52 +02:00
Tobias Fella
0bc51627bb
Disable sending messages to encrypted rooms
2021-05-21 12:20:53 +02:00
Carl Schwan
773e633867
Makse sure busyspimmer are only running when required
2021-05-20 15:04:38 +00:00
Carl Schwan
7ac232d372
Minor optimizations to the timeline delegates
...
* Use anchors instead of Layouts
* Don't use Loader for message display name
* Lazy load the emoji popup
2021-05-20 15:04:38 +00:00
Yuri Chornoivan
f20501fe34
Fix minor typo
2021-05-08 08:23:36 +03:00
Carl Schwan
757cc99ff0
Add indicator for lack of internet connectivity
...
Fix #315
2021-05-07 03:36:40 +02:00
Carl Schwan
145532c89d
Don't quick edit text when there is already text in the input field
...
Fix #354
2021-05-07 03:08:57 +02:00
Carl Schwan
0a51c845e6
Implement quick edit
2021-05-06 16:14:38 +00:00
Srevin Saju
fcfde394ad
Merge branch 'master' into work/srevinsaju/command-completion
2021-05-05 20:27:26 +03:00
Srevin Saju
24bf460e9f
fix: use ChatDocumentHandler.AutoCompletionType enum instead of string to chose delegates
2021-05-05 20:25:25 +03:00
Srevin Saju
929e21fc59
style: improve comparisons and formatting
...
completionMenu.completionType === "username"
completionMenu.completionType === "username"
completionMenu.completionType === "username"
completionMenu.completionType === "emoji"
style:
2021-05-05 18:29:38 +03:00
Srevin Saju
75dc3e6611
fix: do not show scroll bar on x-axis in the auto completion bar
...
Fixes #342
2021-05-02 12:18:26 +00:00
Srevin Saju
6c47594bc3
feat: include parameter along with help message in the completion dialog
2021-05-01 17:20:44 +03:00
Srevin Saju
6781c0c964
refactor: replace isCompletingEmoji with completionType
...
completionType (str) will tell completionListView
to load the correct delegate
2021-05-01 13:33:55 +03:00
Srevin Saju
e234861ee6
feat: add command completion UI component
2021-05-01 13:31:09 +03:00
Srevin Saju
fefcbbe190
fix: remove redundant margin in the typing indicator
2021-04-27 20:58:47 +03:00
Srevin Saju
6487adafb8
feat: add an improved typing notification bar above chatbar
...
Fix #330
2021-04-27 17:43:47 +00:00
Jan Blackquill
d5d83ff7b8
Improve keyboard navigation
...
Simply enabling activeFocusOnTab on a few key elements massively improves the
keyboard navigation. Additionally, making the text box forward tab events when
appropriate allows for focus to pass through it without getitng stuck.
2021-04-25 19:38:54 +00:00
Tobias Fella
89056ed6c1
Move the ActionsHandler instance to the RoomPage
...
This is required since when using a RoomWindow, the ActionsHandler from the RoomManager is used, which means that the wrong room is used.
2021-04-17 20:47:01 +00:00
Srevin Saju
66545dbc31
feat: autofocus on the textArea when the reply / edit is triggered
...
automatically focus on the textArea when reply, edit is pressed. Also
move the cursor to the end of the text content, for example, when the edit button
is pressed
2021-04-10 00:10:42 +03:00
Tobias Fella
d170cc5161
Cleanup QML imports and license headers
...
- Group the imports into Qt, KDE, NeoChat
- Import the latest versions
- Remove unused imports
- Remove unused components
- Unify license header styling
2021-04-07 19:38:40 +00:00
Noah Davis
aa2d332b89
[ReplyPane] Make reply/edit Label fillWidth and elide usernames
...
Also removes a stylesheet that seemed to do nothing so that
StyledText can be used instead of RichText, which is more light weight.
fixes #336
2021-04-07 12:07:57 -04:00
Srevin Saju
78f7f815ca
feat: add a quick reply workflow using the Ctrl+Up arrow key
...
neochat now supports a quick reply shortcut, which helps to reply to
the last event in a room.
2021-04-05 12:17:51 +00:00
Srevin Saju
f007e96fdf
feat: add a quick edit workflow using the up arrow key
...
neochat now supports a quick edit shortcut, which helps to edit
the last message from the user in a room.
Apply 1 suggestion(s) to 1 file(s)
remove comment
2021-04-03 21:31:42 +03:00
Srevin Saju
71d4b8763e
feat: allow sending messages using Enter Key (numeric keypad)
2021-04-03 13:27:10 +00:00
Srevin Saju
4e02fa8290
feat: scroll to bottom on new user message
...
when the user sends a new message, and if the user is at an older position
in the timeline, then neochat should automatically scroll to the latest message and mark all the messages as read
2021-04-02 22:37:31 +00:00
Tobias Fella
e15810ab0c
Fix broken i18n in ReplyPane
2021-03-23 14:48:32 +01:00
Carl Schwan
603d4e1f0d
Improve performance of the emoji model
...
Only display up to 10 emojis when searching
Related to #310 but a better solution needs to be found because we get
the same problem on big room when autocompleting usernames.
2021-03-20 15:32:33 +01:00
Carl Schwan
743c9972b9
Use singleton to pass edit/reply content to chatbox
...
This significantly reduce the complexity of everything.
2021-03-20 14:00:29 +00:00
Noah Davis
38e2c7222b
This splits ChatTextInput into ChatBox and a handful of subcomponents.
...
- ChatBar: Contains the main TextArea and standard buttons.
- Usually visible, but can be disabled when necessary.
- AttachmentPane: Contains an image when attaching an image and also a filename with mimetype icon.
- Has a toolbar to cancel the attachment or edit it if it's an image.
- Shown when there is an attachment.
- ReplyPane: Shows who you are replying to and the content of their message.
- Also shows edits and has a button to cancel replies/edits
- Shown when replying or editing
- CompletionMenu
- Now a vertical list using a QQC2.Popup
- Either a Pane or a Menu/Popup
- EmojiPickerPane
@teams/vdg
2021-03-17 23:48:06 +00:00