Commit graph

1171 commits

Author SHA1 Message Date
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
64af1f357c Fix query notifications on first connect
Fixes #284
2014-05-07 18:57:13 +01:00
Lorenz Hübschle-Schneider
236b0da97b Merge pull request #291 from torhve/fix-empty
Don't send empty commands, use angular model instead of accessing element value directly. Fixes problem with pressing enter will send previous value in history.
2014-05-07 18:20:59 +01:00
Lorenz Hübschle-Schneider
91bca211ee Merge pull request #290 from torhve/sslerror
Better user feedback for connection problems
2014-05-07 18:20:08 +01:00
Tor Hveem
91b0ddc259 Fix syntax. Emit relaydisconnect so connect button changes 2014-05-07 19:15:47 +02:00
Tor Hveem
3f595ea0ac Don't send empty commands, use angular model instead of accessing
element value directly. Fixes problem with pressing enter will send
previous value in history.
2014-05-07 19:01:12 +02: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
695c429c4f Only support the weechat defaults for clearing buffer 2014-05-07 18:55:48 +02:00
Tor Hveem
fbfeec8fca Change the connect button text based on connection status 2014-05-06 22:00:02 +02:00
Tor Hveem
d2f11ad89d Catch DOMException 2014-05-06 22:00:02 +02:00
Tor Hveem
f21cf4c046 Support clearing of buffer lines with command /c or /clear 2014-05-06 18:39:48 +02:00
David Cormier
9121407ddd Merge pull request #283 from glowing-bear/fixsearch
Don't send input bar contents on buffer switch
2014-05-05 10:41:49 -04:00
Tor Hveem
3499998764 Merge pull request #285 from glowing-bear/encryptioninstructions
Improve encryption instructions
2014-05-05 00:54:51 +02:00
Lorenz Hübschle-Schneider
b766b41ed4 Improve encryption instructions 2014-05-04 19:07:08 +01:00
Lorenz Hübschle-Schneider
84270655ee Don't send input bar contents on buffer switch
Fixes #277
2014-05-04 11:21:35 +01:00
Tor Hveem
b06f6f8589 Merge pull request #280 from glowing-bear/fixnickspeak
Fix bug where updateNickSpeak would fail on lines without a prefix
2014-05-03 16:58:27 +02:00
Tor Hveem
512f7d726b Merge pull request #282 from glowing-bear/fixonelinebug
Fix that bug where only one line was loaded
2014-05-03 16:51:50 +02:00
Lorenz Hübschle-Schneider
9f6f598f40 Merge pull request #281 from glowing-bear/travisbequiet
Travis: disable build success IRC notifications
2014-05-03 15:14:31 +01:00
Lorenz Hübschle-Schneider
aab111bb80 Fix that bug where only one line was loaded
Let me tell the story backwards:
For some reason, only one line would be fetched in `fetchMoreLines`, but
neither `numLines` nor `buffer.requestedLines` were `undefined`. The
paramater `numLines` must have had some strange value, though.
`connection.fetchMoreLines` is invoked through the main controllers
`$scope.fetchMoreLines`, which sets the parameter to `$scope.lines` if it was
undefined before. That value is computed in `$scope.calculateNumLines`,
which takes the height of the lines area and divides it by the height of the first
bufferline. This computation is retriggered on every `resize` event.
The first bufferline is the 'fetch more lines' link at the top of the window. If the
currently active buffer doesn't have more lines, it is hidden with `ngHide`,
causing its `clientHeight` property to be `0`, and the number of lines to be
fetched `$scope.lines = Infinity` (due to a division by zero).
In `connection.fetchMoreLines`, the following request is then made:
`"buffer:0x" + buffer.id + "/own_lines/last_line(-" + numLines + ")/data"`
to which WeeChat responds with one line. Voilà, there's your mess.
2014-05-03 15:07:12 +01:00
Lorenz Hübschle-Schneider
f3a94eaa6c Travis: disable build success IRC notifications 2014-05-03 14:17:57 +01: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
6812501f12 Merge pull request #278 from glowing-bear/uifix
Add space to bottom of #bufferlines
2014-04-30 10:16:49 +02:00
Lorenz Hübschle-Schneider
116e984ac8 Add space to bottom of bufferlines 2014-04-30 09:01:42 +01:00
David Cormier
6e88dfe963 Merge pull request #275 from glowing-bear/countWatchers
Better countWatchers, remove jQuery uses
2014-04-29 23:14:02 -04:00
David Cormier
c104385834 css: merge body tags 2014-04-29 21:31:49 -04:00
Tor Hveem
fb2134736c Pixel adjustments to attempt perfectly align icons in top bar 2014-04-29 21:31:49 -04:00
Tor Hveem
dc077ac903 Improve CSS layout. Fix 98% bug that affects chrome/ff differently.
Conflicts:
	css/glowingbear.css
2014-04-29 21:31:49 -04:00
Tor Hveem
a2969adf9b Remove old cruft 2014-04-29 21:31:48 -04:00
Lorenz Hübschle-Schneider
d363121556 Remove unnecessary uses of jQuery and dead code
Native code is faster anyways ;)
2014-04-28 13:52:21 +01:00
Lorenz Hübschle-Schneider
1d2e5f1d0b Better countWatchers
The old one missed a few, two on the input and the one in the title.
This version also doesn't use jQuery

From: http://stackoverflow.com/a/18539624 by StackOverflow user "plantian"
2014-04-28 13:40:27 +01:00
Lorenz Hübschle-Schneider
26d43fa694 Merge pull request #272 from torhve/versionbump
Bump angular and underscore.js versions
2014-04-28 13:05:22 +01:00
Tor Hveem
3b74512c77 Bump versions 2014-04-26 22:56:30 +02:00
David Cormier
1480f953c7 Merge pull request #271 from torhve/multiline
Revert the revertion of multiline and clean it up for new directive.
2014-04-26 12:54:51 -04:00
David Cormier
49b36bc3ea Merge pull request #270 from glowing-bear/performance3
Performance improvements (fixed)
2014-04-26 12:40:29 -04:00
Tor Hveem
20a8289072 Revert the revertion of multiline and clean it up for new directive. 2014-04-26 18:16:46 +02:00
Lorenz Hübschle-Schneider
18d1f4716b Revert "use ng-if to hide date instead of css"
That actually decreases performance, because it adds a watcher to every line

This reverts commit 16365db588.
2014-04-26 16:50:04 +01:00
Lorenz Hübschle-Schneider
677ec7783d Reduce usage of ng-show/hide to reduce number of useless DOM elements (fixed)
Progress in the direction of #87, especially on mobile.
This version doesn't break everything for new users.
2014-04-26 16:49:56 +01:00
Lorenz Hübschle-Schneider
8cb6fc623e Travis: Reduce IRC notification spam
Only send a "the build passed" notification if it previously didn't, i.e. the build was fixed.
Failure notifications stay the same
2014-04-26 16:00:37 +01:00
Lorenz Hübschle-Schneider
16365db588 use ng-if to hide date instead of css 2014-04-26 10:48:19 -04:00
David Cormier
9e57733b31 Merge pull request #268 from glowing-bear/youtube
Improve youtube matching URL
2014-04-25 18:41:11 -04:00
Lorenz Hübschle-Schneider
9f46e656cb Improve youtube matching URL
closes #266
2014-04-25 18:39:01 -04:00
David Cormier
82cab2c6af Merge pull request #267 from torhve/recentspeaker
Use recent speaker instead of alphabetical nick tab complete
2014-04-25 18:35:34 -04:00
David Cormier
696574fa74 Merge pull request #269 from torhve/readme
Improve the readme
2014-04-25 15:16:17 -04:00
Lorenz Hübschle-Schneider
f7e1e97b2b Fix a few things in the README
@torhve, please cherry-pick onto your PR :)
2014-04-25 21:13:33 +02:00
Tor Hveem
bcc51ef254 Try to improve the readme 2014-04-25 21:13:31 +02: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
b91241744c Improve youtube matching URL
closes #266
2014-04-25 19:03:05 +01:00
David Cormier
253e2ffc60 Revert "Minimise usage of ng-show/hide to reduce number of useless DOM elements"
This reverts commit b4e1a5aaad.
2014-04-24 23:20:56 -04:00
David Cormier
fe902fa545 Merge pull request #264 from tribut/new-url
Update Travis URL
2014-04-24 11:17:05 -04:00