Commit Graph

55 Commits

Author SHA1 Message Date
Lorenz Hübschle-Schneider 0a919f70fb Respect hotlist clearing setting on buffer switch & message send
Fixes #1035
2018-11-05 16:04:11 +01:00
Lorenz Hübschle-Schneider 6bf2ea6b02
Merge pull request #990 from lorenzhs/fix-hidden-angle-brackets
Don't put hidden angle brackets around actions and other non-messages
2018-10-27 15:52:02 +02:00
Lorenz Hübschle-Schneider 263c5e8b00 Keep track of unread counts for servers' buffers for 'show only unread' view
Maintain unread info for all buffers belonging to a server.  This info
is used to hide server buffers for which *no* associated buffer has
activity when 'Only show buffers with unread messages' is enabled.

Closes #1019
2018-09-10 10:01:57 +02:00
JungEon Kim 3d39a3c138 Make image uploadable by paste from clipboard 2018-04-13 09:47:24 +09:00
Lorenz Hübschle-Schneider 0b506e30dc Don't insert mention when clicking non-privmsg
This goes in the direction of #860 but actually removing the tag seems
to be rather more involved
2018-03-18 16:48:29 +01:00
Lorenz Hübschle-Schneider d4d7a977e1 Parse some of WeeChat's completion settings
weechat.completion.nick_completer and 'weechat.completion.nick_add_space

Fixes #963
2017-08-20 09:51:48 +02:00
Lorenz Hübschle-Schneider 539f892e8e Merge pull request #922 from glowing-bear/buffer-jump
Implement Alt+J buffer jump like in WeeChat
2017-05-14 20:13:15 +02:00
Lorenz Hübschle-Schneider 236275a33b Merge pull request #931 from lorenzhs/emojification
Emojification: only replace sequences of emoji surrounded by whitespace
2017-05-14 20:12:57 +02:00
Lorenz Hübschle-Schneider 3c30e6ad07 Ctrl-w: ignore all whitespace, not just spaces 2017-05-06 13:11:27 +02:00
Simon Sapin ea4de99e89 Fix Ctrl+W when the cursor follows a space.
This key binding does "Delete from cursor to previous space".
When the text before the cursor was `some example`,
it would find the space after "some" and delete "example".
When hitting Ctrl+W *again*, it would find the same space again…
and delete nothing.

This changes the code to ignore trailing spaces before the cursor
for the purspose of finding the previous space,
so that something (if at all possible) is always deleted.
2017-05-05 21:44:40 +02:00
Lorenz Hübschle-Schneider 98d4bd9613 Emojification: only replace sequences of emoji surrounded by whitespace
Fixes #903, #930
2017-04-18 16:07:07 +02:00
Lorenz Hübschle-Schneider f4db7c2647 Don't show quick keys if they're disabled 2017-03-23 15:48:07 +01:00
Lorenz Hübschle-Schneider e17fce6f6d Rename setting for consistency 2017-03-23 15:48:07 +01:00
Evan Tschuyi 231a524438 allow users to disable the alt+%d buffer switching 2017-03-23 15:26:26 +01:00
Lorenz Hübschle-Schneider 26d8b5faee Animate jumpkey transition & change placeholder to "Number" 2017-03-23 13:53:07 +01:00
Lorenz Hübschle-Schneider 915d0d5d3e Reset search state when initiating jump 2017-03-18 17:04:37 +01:00
Lorenz Hübschle-Schneider 22cb962e63 jumpkeys: filter on entry of first digit
not quite sure whether I like changing the sort order
2017-03-18 16:33:54 +01:00
Lorenz Hübschle-Schneider d9346f5f3e simplify buffer jumping logic 2017-03-18 16:33:54 +01:00
Tobias Theuer 833a2a8c0f Improved timing. Made code more readable. 2017-03-18 16:33:54 +01:00
Tobias Theuer 811e76d443 Jump to any buffer (up to 99) with Alt+J followed by 2 digits. 2017-03-18 16:33:54 +01:00
Alice Jenkinson 8989695af6 Re-focus the input bar after nick completion button is pressed 2017-03-18 03:31:18 +13:00
Alice Jenkinson 64e801ef65 Expose utils to the scope and use isMobileUi in input.html 2017-03-18 03:29:59 +13:00
Alice Jenkinson c6a8b69fe0 Only show nick completion button on mobile UI 2017-03-18 02:11:57 +13:00
Alice Jenkinson 520f2ac349 Add a button to the input bar to complete nicks 2017-03-17 18:46:51 +13:00
Lorenz Hübschle-Schneider 401e46e599 Use event.keyCode for consistency
We should either switch everything to event.code or nothing, imho
2016-11-09 13:04:25 +01:00
Simon Cooksey 71c2900216 Alt-H now clears hotlists on WeeChat relay
Fixes #832.
2016-11-09 12:58:09 +01:00
Tor Hveem 1ba1698703 Implement alt-h. Fixes #832 2016-10-13 14:16:24 +02:00
Tor Hveem dcc0f19fc5 Fix alt-< keybinding 2016-04-20 12:13:47 +02:00
Mukunda Modell 3b60f992b4 Switch to adjacent buffer with alt+arrow
Use alt+up and alt+down to switch to previous / next buffer.
Works when bufferlist is nested or flat.

This implements issue #511.
2015-12-04 08:43:48 -06:00
Lorenz Hübschle-Schneider a6c2e6f387 Insert URL at caret when dropping image into GB
unfortunately this pollutes the root scope a bit more
2015-11-10 19:40:30 +01:00
Magnus Hauge Bakke 3f661ded6c Support sending multiple images 2015-11-07 12:45:05 +01:00
Lorenz Hübschle-Schneider 960d5ba17a Insert image URL into input bar 2015-11-07 12:44:22 +01:00
Magnus Hauge Bakke aef26a2dc5 Add file input with button and send file to imgur 2015-11-07 12:44:22 +01:00
Tor Hveem cf771eb73f Merge pull request #620 from glowing-bear/noswitch
Use -noswitch option to open buffers
2015-09-17 09:05:35 +02:00
Tor Hveem 1f37f848fc fix another version check 2015-09-17 08:59:38 +02:00
Chris Moeller c7a5d8decf Added a check for DOM 3 getModifierState before attempting to use it, as some browsers may not have implemented that spec yet (Like stable Safari) 2015-06-13 16:54:59 -07:00
Tor Hveem e096284502 Check modifier state and don't trigger on any altgr event 2015-06-12 11:10:48 +02:00
Tor Hveem ec877ab224 Switch to buffer after issuing /query. Fixes #318
Save outgoing /query nicks to a list and then check that list when we
get a buffer title rename and then switch to the buffer if the name
matches any nick in the outgoing list. Reason to use title event instead
of buffer opened event is that buffer open event doesn't contain the
short name. That would require parsing and guessing full names and in
general be more complicated (but maybe more correct)

This patch can be further improved in the future to check for existing
buffers and switch to them if they already exist.
2015-04-23 10:47:16 +02:00
Tor Hveem d0cabde132 Send more types of clearing only when using new style 2015-04-18 12:11:13 +02:00
Tor Hveem 9432004c5e Clear hotlist in more scenarios
* Clear when switching away from a buffer
 * Clear when sending a message to a buffer
2015-03-23 13:33:16 +01:00
Tor Hveem 99ccd551b6 Enable by default, except on mobile. Convert by default. 2015-03-22 13:11:39 +01:00
Lorenz Hübschle-Schneider be6e356363 Settings module 2015-02-04 19:56:56 +01:00
Lorenz Hübschle-Schneider 4a41e32fef Ask before sending /quit 2014-11-06 14:21:40 +01:00
Tor Hveem 1dc32fd847 Merge pull request #483 from glowing-bear/key-overlays
Show quick access keys on Alt keypress
2014-10-28 01:24:11 +01:00
Ailin Nemui 85ef764faf make pageup key trigger fetch more lines 2014-10-26 21:10:53 +01:00
Lorenz Hübschle-Schneider 80b0d2ca6a Quick keys disappear only after releasing alt key
Other changes:
- 0.2s delay so they don't appear when pressing Alt+A etc
- don't appear when other modifier keys are pressed
2014-10-20 12:30:30 +02:00
Ailin Nemui 9827710736 Support narrowing buffer selection with Alt+0-9 after using Alt+g or when onlyUnread is enabled, and show numeric overlays for Alt+0-9 keys on the buffers 2014-10-20 11:45:56 +02:00
Ailin Nemui 081c141760 apply-exception in inputbar/bufferFilter.focus 2014-09-21 22:20:37 +02:00
David Cormier 933af6a983 Merge pull request #420 from glowing-bear/use-strict
[PLS TEST] Use strict
2014-09-17 09:44:32 -04:00
Tor Hveem a87dc569aa Merge pull request #445 from ailin-nemui/up-down-pgup-pgdn
add pgup/pgdn keys and fix history in multiline edits
2014-09-17 12:30:05 +02:00