aboutsummaryrefslogtreecommitdiff
path: root/components/composer.js (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Add support for soju.im/filehostSimon Ser2024-04-161-0/+83
| | | | | | For now, only handle paste events containing files. Co-authored-by: Alex McGrath <amk@amk.ie>
* components/composer: focus composer on keydown if a link is activeSimon Ser2023-01-311-2/+8
| | | | Fixes message not typed after clicking on a link.
* Limit composer lengthSimon Ser2022-08-281-0/+1
| | | | Often times IRC servers will truncate messages which are too big.
* Convert remaining simple quotes to double quotesSimon Ser2022-02-261-1/+1
|
* Display persistant command input on server bufferNoelle Leigh2021-12-211-2/+7
| | | | | | | | | | | | This commit changes the composer to not be read-only on the server buffer, which tells the user that they can send commands from that view. On the server buffer, the placeholder is changed to "Type a command (see /help)", which indicates to the user that this buffer only accepts commands, and gives them a hint for how to learn what commands are available. Implements: https://todo.sr.ht/~emersion/gamja/38
* composer: focus on pasteSimon Ser2021-07-211-0/+27
|
* composer: cycle through auto-completionsSimon Ser2021-06-301-24/+53
| | | | Closes: https://todo.sr.ht/~emersion/gamja/42
* composer: add smart suffix after auto-completionSimon Ser2021-06-301-0/+8
| | | | | Append a space after a command name, so that arguments can be typed directly. Append a colon after a nickname.
* composer: auto-complete word at carret positionSimon Ser2021-06-301-9/+30
|
* Don't focus composer on key press if modifier is also pressedSimon Ser2021-06-221-0/+5
|
* Focus buffer scrollview instead of composerSimon Ser2021-06-221-5/+28
| | | | | | | | | | | | | Instead of focusing the composer, focus the buffer scrollview when switching to a buffer. This allows keyboard navigation to work as expected, with arrow up/down and page up/down scrolling the buffer instead of doing nothing. Focus back the composer when a KeyboardEvent produces text. This allows users to start typing a message right after switching to a buffer. Closes: https://todo.sr.ht/~emersion/gamja/64
* Improve composer form indentationSimon Ser2021-06-221-1/+11
|
* s/var/let/Simon Ser2021-06-101-4/+4
|
* Blur the composer when hiding itSimon Ser2021-06-071-0/+4
| | | | | This should make toggling the composer in a server buffer more reliable.
* Set enterkeyhint in composerSimon Ser2021-05-311-0/+1
|
* composer: turn off browser autocompleteDrew DeVault2021-05-281-1/+9
|
* Make all resource paths relativeSimon Ser2021-03-021-1/+1
| | | | Closes: https://todo.sr.ht/~emersion/gamja/17
* Fix TypeError in Composer.focusSimon Ser2020-07-131-0/+3
| | | | Uncaught (in promise) TypeError: this.textInput.current is null
* Add basic autocompletionSimon Ser2020-06-291-2/+31
|
* Listen to input evbent in composerSimon Ser2020-06-261-3/+3
| | | | Avoids having the pending text removed when re-rendering the component.
* Switch to reactSimon Ser2020-06-241-0/+56
Under the hood, preact is used to reduce dependency size. We still don't have a build stage, so htm is used instead of JSX.