aboutsummaryrefslogtreecommitdiff
path: root/lisp/mastodon-tl.el
Commit message (Collapse)AuthorAgeFilesLines
...
* Make "Content warning" a tab stop and toggle to show/hide the main contents. ↵H Durer2018-03-051-27/+115
| | | | | | | | | | | | | (#170) * Allow user to navigate interesting things in a buffer via tabbing (tab to go forward, M-tab and S-Tab to go back). This has always been possible while on a hyperlink but now works everywhere. Currently only hyperlinks are tab stops but in the future we will want to support other things and there are already TODO comments in the code to note where we may want to do this. * Add a new tab stop and link type: spoiler toggling. This initially hides the spoiler in a toot and makes the "Content warning" a link and tab stop. The action taken is to toggle the visibility of the toot.
* Add a new customization flag to switch between using fixed width or ↵Holger Dürer2018-03-051-1/+8
| | | | | | proportional fonts. The default stays as is now to use fixed width fonts.
* Allow user to navigate interesting things in a buffer via tabbing (tab to go ↵Holger Dürer2018-03-051-61/+162
| | | | | | | forward, M-tab and S-Tab to go back). This has always been possible while on a hyperlink but now works everywhere. Currently only hyperlinks are tab stops but in the future we will want to support other things and there are already TODO comments in the code to note where we may want to do this.
* Fixes buffer switching issue and closes issue #158Alexander Griffith2018-03-011-1/+1
| | | | | | - Small logic fix in mastodon-tl--media to remove redundant newline - Replaced switch-to-buffer with with-current-buffer in mastodon-media--process-image-response - Squashed with merge to develop
* Closes #152 and extends the fix for #150 as well as a host of bug fixesAlexander Griffith2018-02-281-17/+46
| | | | | | | | | | | | | | | | | | We now kill the http get request buffer once JSON has been extracted. mastodon-tl--as-string was implemented and replaced any occurrence of number-to-string or int-to-string Added variable mastodon-tl--display-media-p. By default it is 't but can be made a local buffer variable and set to nil. When nil rather than displaying the media it just provides a link Media::<link> Fixed checking for faves and boosts, they should now render properly. The return from json-read-from-string for nil is :json-false which evaluates to 't in elisp. Fixed the format string that gets printed when faving and boosting Fixed mastodon-tl--thread updating and requesting and changed its behaviour such that it tries to open the original toot thread rather than the boosted thread. Added tests for both the new mastodon-tl--as-string function and the mastodon-tl--toot-id utility. enter mastodon mode before defining local buffer variable mastodon-tl--buffer-spec. This fixes some oddities with the local buffer variable.
* Merge branch 'develop' into fix-numericpAlexander Griffith2018-02-261-5/+199
|\
| * use absolute time stamps when mastodon-tl--enable-relative-timestamps is nilAlexander Griffith2018-02-251-1/+3
| |
| * Review comments from alexjgriffith:Holger Dürer2017-06-191-26/+40
| | | | | | | | | | | | | | | | | | | | | | - Simplify let structure in byline generation - Allow disabling of relative timestamps via customization Maybe still to do: - use of cl-macs in tests Punted to a later PR: - Using correct form in docstrings throughout
| * Add periodic updating of the timestamp displays.Holger Dürer2017-06-191-31/+173
| | | | | | | | | | | | | | For each buffer we add a timer that periodically checks all timestamps and updates them as needed. The logic tries to be smart and - only schedule an update when at least one timestamps display needs changing (although at the moment we update at least every 5 minutes), and - only do a limited amount of work in each timer callback so as to not block Emacs's interactive work.
| * Show the posting date in a more readable, relative to current time format.Holger Dürer2017-06-191-1/+37
| | | | | | | | This is still static, i.e. doesn't update as time progresses.
| * Bump version to 0.7.1Johnson Denen2017-06-191-1/+1
| |
* | Check if an id is a number before attempting to convert it. Closes #150alexjgriffith2018-02-241-2/+6
| |
* | Bump version to 0.7.1Johnson Denen2017-06-191-1/+1
|/
* Bump to v0.7.0Johnson Denen2017-05-181-1/+1
|
* replaced declare-function with autoloadalexjgriffith2017-05-181-6/+6
|
* Replace uses of replace-regexp with search-forward and replace-match.Holger Dürer2017-05-181-1/+3
|
* Remove most byte-compile warnings.Holger Dürer2017-05-181-15/+30
| | | | | | | We do this by - moving vars into the files where they are (mostly) used - "declaring" vars used elsewhere with the (defvar <var-name>) pattern, - declaring functions defined in others functions rather than loading the file via require.
* Putting buffer name and update function in buffer local varalexjgriffith2017-05-181-99/+76
| | | | | | | | | | removed tests for previous version documented mastodon-buffer-spec getters moved mastodon-buffer-spec to mastodon.el combined mastodon-tl--get and mastodon-tl--init, along with other cleanups
* Fix for #84Alexander Griffith2017-05-181-16/+72
| | | | | | | | | | | | changed more-json in mastodon-tl-tests to recieve an endpont more evocative names and fixed whitespace replaced remaining end eith endpoint-plist added basic unit tests for endpoint selection replaced equalp with equal in tests
* fixed #133 replaced regex with a trim functionAlexander Griffith2017-05-161-1/+2
|
* Fix #131 with refined regexp patternJohnson Denen2017-05-151-1/+1
|
* Merge pull request #123 from alexjgriffith/image-nl-placementJohnson Denen2017-05-151-7/+13
|\ | | | | closed #79
| * Merge branch 'develop' into image-nl-placementalexjgriffith2017-05-151-8/+11
| |\
| * \ adjusted for async image loadingAlexander Griffith2017-05-121-9/+13
| |\ \
| * | | Revert "Adjusted for async image changes"Alexander Griffith2017-05-121-13/+10
| | | | | | | | | | | | | | | | This reverts commit b0ead06b42ed06218e87a0bb75dae41570592423.
| * | | Adjusted for async image changesAlexander Griffith2017-05-121-10/+13
| | | |
| * | | closed #79Alexander Griffith2017-05-121-9/+12
| | | |
* | | | Bump to v0.6.3Johnson Denen2017-05-151-1/+1
| | | |
* | | | Use lexical-binding in all files.Holger Dürer2017-05-151-1/+2
| |_|/ |/| | | | | | | | | | | We only support Emacs 24 and 25 so are free to use sane bindings by default. To keep the linter happy, we need to declare dependency on Emacs 24 in all files.
* | | Added face customization closes #124Alexander Griffith2017-05-131-8/+11
| |/ |/|
* | Move the rendering of images fully into mastodon-media.el and use default ↵Holger Dürer2017-05-101-13/+2
| | | | | | | | | | | | | | images. Having all the logic in one file reduces interdependencies. Having default images is more pleasing during the incremental loading.
* | Show users' avatars plus other image work.Holger Dürer2017-05-081-9/+21
|/ | | | | | | | | - Shows users' avatars (makes only sense if Emacs is built with imagemagick) - Scales media attachement previews to a max size (if Emacs is built with imagemagick) - Enable cacheing of image fetches Known issues: - We should really cache the avatars to avoid having multiple identical images in memory.
* Clean up use of progn.Holger Dürer2017-05-051-3/+2
| | | | | - Lambda, defun, let, etc. all have an implicit progn. - A progn with a single form is identical to that single form.
* Don't quote nil.Holger Dürer2017-05-051-3/+3
| | | | "nil" evaluates to itself so no need to quote it.
* Moved decode-coding-string out of tl functionsalexjgriffith2017-05-051-7/+4
|
* Merged nested letsalexjgriffith2017-05-051-3/+3
|
* #114 Swapped customize-set-value to letalexjgriffith2017-05-051-4/+3
|
* removed fonting from shr-render-region callAlexander Griffith2017-05-051-1/+4
|
* Removed the superfluous if around mapconcat and Renamed images media previewalexjgriffith2017-05-051-9/+4
|
* Added suport for multiple media display per tootalexjgriffith2017-05-051-7/+10
|
* Bump to v0.6.2Johnson Denen2017-04-291-1/+1
|
* word is no longer nil when no word-at-point is nilAlexander Griffith2017-04-281-1/+1
|
* en #74 added autofill for tag timelineAlexander Griffith2017-04-281-1/+4
|
* Bump to v0.6.1Johnson Denen2017-04-281-1/+1
|
* Add the time of posting to the byline.Holger Dürer2017-04-281-0/+4
|
* Store 'favourited-p and 'boosted-p properties on bylinesJohnson Denen2017-04-271-4/+5
|
* Bump to v0.6.0Johnson Denen2017-04-241-1/+1
|
* Removed tabs from mastodon-tlAlexander Griffith2017-04-241-12/+12
|
* fixed formatting and conventions for #41Alexander Griffith2017-04-241-2/+2
|
* Fix #41 cleaned up forkAlexander Griffith2017-04-241-1/+1
|