Commit Graph

96 Commits

Author SHA1 Message Date
Lorenz Hübschle-Schneider
85dc498fdd
Fix ES6 syntax in models.js
This broke the tests and the minification / update process on latest/pull.glowing-bear.org
2020-07-21 13:53:34 +02:00
Jeremy Mahieu
ade2c50c05 Downgrade rich text for buffers 2020-07-18 22:00:40 +02:00
Lorenz Hübschle-Schneider
effbaff804 Simplify logic of hiding bufferline times 2020-04-22 11:44:31 +02:00
Jeremy Mahieu
3bd2367164 Rename buffer variable showTimes 2020-04-12 17:59:55 +02:00
Jeremy Mahieu
cf2e8b8ef2 Set undefined buffer.type as other 2020-04-12 17:56:14 +02:00
Jeremy Mahieu
4bf1d92ace Hide time markers for certain buffer types 2020-04-12 17:44:26 +02:00
Lorenz Hübschle-Schneider
afcc264f99 Show a toast when clicking nick of a user who left 2020-02-19 14:13:11 +01:00
Jeremy Mahieu
fdb24447c4 Missing semicolon 2019-12-12 00:52:52 +01:00
Jeremy Mahieu
60f834882a Remove nicklist when weechat clears it and bring is back if it's filled again 2019-12-12 00:39:17 +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
Lorenz Hübschle-Schneider
813fe93355 Don't put hidden angle brackets around actions and other non-messages
Fixes #616
2018-03-18 16:48:29 +01:00
Kasper Vaessen
f9e84f81ee Implement repeated-prefix 2016-10-18 11:05:28 +03:00
Kasper Vaessen
216da6fdab Nick list colors now also work without background color 2016-10-11 17:16:20 +03:00
Kasper Vaessen
55b4c6254b Fixed nicks with background colours breaking in nicklist 2016-10-10 01:28:57 +03:00
Tor Hveem
65b4aaa97d Ability to pin buffers. Fixes #778.
This introduces ability to pin buffers using localvar storage in
WeeChat. At a later stage some UI should be introduced for this, like
discussed in #604 .
2016-09-27 15:49:22 +02:00
Jake Stevenson
bc72e8952c Able to resume buffer 2016-09-06 16:35:16 -05:00
Patrick Melanson
ac2966ff0b Base our time format off of weechat's config 2016-07-20 11:57:20 -04:00
Patrick Melanson
a0485b5801 Bufferline timestamps now try to detect locale 2016-06-18 11:51:51 -04:00
Tor Hveem
c9dbdc39e4 fetch weechat configuration variables
Usage: fetchConfValue('weechat.look.buffer_time_format')
will result in models.wconfig['weechat.look.buffer_time_format'] to be
set when the result returns from WeeChat.

Could maybe be extended to also call a callback when it's available if
needed.
2015-12-17 17:46:43 +01:00
Lorenz Hübschle-Schneider
ceceac78a2 Use buffer localvars instead of regex hackery
Fixes #589
2015-12-06 13:53:57 +01: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
507a39f68f Don't show date change message for free buffers
This requires requesting the buffer type and handling the
apropriate event
2015-11-28 20:59:00 +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
Angus Gibson
117d9991ec Handle hidden weechat buffers
This adds a new 'hidden' field to the Buffer model, which stays in sync
with weechat's notion of hidden buffers.
2015-07-10 13:52:12 +10:00
Tor Hveem
1f89a0ef0b Use new version check 2015-06-10 10:04:10 +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
97b937f015 Use correct pointer string 2015-03-26 13:45:53 +01:00
Lorenz Hübschle-Schneider
78b33798c6 Fix commands for buffers whose fullname contain whitespace
Use pointers if Weechat version is recent enough (1.0+).
Otherwise, not marking stuff as read is probably the lesser evil than crashing weechat...
2015-03-26 11:03:50 +01:00
Tor Hveem
c71ce1b404 Use new command for "syncing" hotlist.
This patch also implements parsing version message and using that to
check that the WeeChat is new enough to use the new command.
2015-03-21 14:08:09 +01:00
Tor Hveem
7f82a24b91 Check that nicklist exists before updating. 2015-03-07 13:01:05 +01:00
Lorenz Hübschle-Schneider
1d4caa91cd Parse colours in buffer title
Requires a WeeChat version including 013165209a
i.e., WeeChat 1.1 or a November 2014 nightly (or later)
(for previous versions, see https://github.com/weechat/weechat/issues/237)

Fixes #308
2015-01-03 18:18:20 +01:00
Lorenz Hübschle-Schneider
d783d0e91b Fix display of buffers without a short_name 2014-11-20 21:18:18 +01:00
Lorenz Hübschle-Schneider
9b7a778186 Fix non-#channels and single-symbol channels (#) 2014-11-20 12:59:33 +01:00
Lorenz Hübschle-Schneider
cd124cf5ff Fix escaping in regex parsing buffer fullName 2014-11-02 19:10:45 +01: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
Lorenz Hübschle-Schneider
2475ad2c61 Bufferlist design attempt 2014-09-17 13:24:27 +02:00
Lorenz Hübschle-Schneider
a80db339f8 Use strict
Requires turning IrcUtils into an Angular service, because the global variable
trick won't work with use strict.
Reuse is still easily possible by removing the angular wrapping around it.
2014-09-07 16:55:18 +01:00
Lorenz Hübschle-Schneider
edb34144c7 Move current line into history when pressing down in input bar 2014-07-21 15:35:53 +01:00
Lorenz Hübschle-Schneider
a2073d893e Fix buffer closing
0cbf5fc4 uncovered an old bug
Thanks for noticing, @torhve
2014-05-08 11:05:08 +01:00
Lorenz Hübschle-Schneider
abfa26d6ed Clean up buffer model a bit
* use type local variable to determine whether to indent
* local_variables is not used, don't export/save it
2014-05-07 18:58:59 +01:00
Lorenz Hübschle-Schneider
2eddc9ff3d Merge pull request #288 from torhve/clear
Support clearing of buffer lines with command /c or /clear
2014-05-07 17:58:27 +01:00
Tor Hveem
f21cf4c046 Support clearing of buffer lines with command /c or /clear 2014-05-06 18:39:48 +02:00
Lorenz Hübschle-Schneider
36a35628e2 Fix bug where updateNickSpeak would fail on lines without a prefix 2014-05-03 14:12:55 +01:00
Tor Hveem
921e28d0e2 Remove the old and now unused flat nicklist 2014-04-25 21:05:20 +02:00
Tor Hveem
4e08a52f25 Use recent speaker instead of alphabetical nick tab complete
Use _ for sorting.

Fix jshint problems and naming things.

Fix comments
2014-04-25 20:33:01 +02:00
Lorenz Hübschle-Schneider
5e19ffd614 Ignore nicklist updates for buffers without a nicklist 2014-03-10 17:01:41 +00:00
Lorenz Hübschle-Schneider
203680ff58 Try to fetch all unread lines if that is a reasonable amount
Partially fixes #139 in that it tries to accomplish this, but until we can request
only non-filtered lines from WeeChat, the best thing we can do is guessing.
2014-03-08 22:47:24 +00:00
Lorenz Hübschle-Schneider
730c7dab8d Load lines before nicklist
Nicklist is not nearly as important as the actual lines, load them first for better perceived performance. Parsing the nicklist can take a noticeable amount of time for channels with thousands of occupants.

This also improves/fixes the nicklist emptiness check
2014-03-08 21:34:39 +00:00
Lorenz Hübschle-Schneider
739c4de0ef Add a isNicklistEmpty method to buffer model, speed up nicklist decision
Flattening the nicklist is really unnecessary. This method is 10x faster for short
nicklists, and much faster for buffers with lots of users.
2014-03-07 17:52:32 +00:00