aboutsummaryrefslogtreecommitdiff
path: root/lisp/mastodon-tl.el
Commit message (Collapse)AuthorAgeFilesLines
* fix view filters/foll suggestsmousebot2022-02-171-27/+18
| | | | | | | | | | | | | | | | | | | | - they get keymaps that inherit and so override the main masto keymap, which allows them to still have the basic timeline/view nav functions. - but we give them next-item rather than next toot so that they never try to e.g. load for toots into the buffer, which wouldn't work. - also remove the reference to foll requests view in tl--init as it is not longer needed. binding for follow suggestions remove tab from foll suggests keymap makes tab work as default, which means you can n/p to next/prev user, while still being able to tab to user next handle, to visit profile squashed commit: remove foll suggestions keymap
* rename goto-first-toot to goto-first-itemmousebot2022-02-171-5/+7
| | | | and enable it in "favourites" buffer
* re-factor follow-user functions for various viewsmousebot2022-02-171-3/+12
| | | | | | | | | | | | | | - revert profile--extract-users-handles - rewrite search--insert-users-propertized to handle raw account JSON, and to call search--get-user-info itself, so we can add full acct JSON to each user displayed and use it for follow-user etc. - and to choose how we want to follow users, we edit tl--interactive-user-handles-get to work differently depending on context: - poss contexts are "follow suggestions" view, search results, and profiles displaying a user's followers/followed users.
* move next/prev item funsmousebot2022-02-171-15/+15
|
* Revert "replace all calls to mastodon-search--insert-users-propertized"mousebot2022-02-171-1/+1
| | | | This reverts commit 787f18dcff2ee7a4c5a5cbf331f4e2d26997e1cc.
* Revert "move faves count help-echo propertize into tl--byline"mousebot2022-02-171-32/+31
| | | | This reverts commit 48a89e518d0a84d4b81c223c9e8cf151df619b1f.
* fix reload on filter create in filter viewmousebot2022-02-171-2/+3
|
* improve follow suggestionsmousebot2022-02-171-17/+31
| | | | suggestions fix fun names(!)
* move faves count help-echo propertize into tl--bylinemousebot2022-02-151-31/+32
| | | | | | | | | this means that we only do the propertizing when we are actually doing an author byline, docstring for add-author-bylines it also needs renaming
* invert if call in filters insertmousebot2022-02-151-11/+10
|
* add generic goto-next/prev-item funs for filters/foll reqsmousebot2022-02-151-7/+7
| | | | fix remnant call to goto-next-filter
* more robust goto-first-toot on timeline/thread loadmousebot2022-02-151-6/+16
| | | | rather than using goto-next-toot, which loops when we have no items in buffer
* Merge branch 'filters' into developmousebot2022-02-151-1/+124
|\
| * Merge branch 'develop' into filtersmousebot2022-02-151-4/+12
| |\
| * | buffer local keymap, error handling, make filters nicermousebot2022-02-151-36/+79
| | | | | | | | | | | | | | | | | | | | | | | | - separate goto-next/prev-filter commands - we use properties toot-id and byline so the navigation works, calqued on - goto-prev/next-toot - error handle no word or context supplied - reload filters view on create or delete
| * | Merge branch 'develop' into filtersmousebot2022-02-141-39/+141
| |\ \
| * | | view and delete filtersmousebot2022-02-141-1/+58
| | | |
| * | | second crack at create filtermousebot2022-02-091-11/+17
| | | |
| * | | fix go to first toot on thread loadmousebot2022-02-071-15/+15
| | | |
| * | | create filter first crackmousebot2022-02-071-0/+18
| | | |
| * | | add go to next toot to tl--threadmousebot2022-02-071-1/+2
| | | |
* | | | replace all calls to mastodon-search--insert-users-propertizedmousebot2022-02-151-1/+2
| |_|/ |/| | | | | | | | with calls to mastodon-profile--add-author-bylines.
* | | improve use of goto-next-toot on timeline loadingmousebot2022-02-151-3/+10
| | |
* | | make accept/reject foll reqs cmds avail in foll reqs view!mousebot2022-02-151-1/+2
| |/ |/|
* | autoload -search--get-user-info for follow suggestionsmousebot2022-02-141-0/+1
| |
* | make mpv an optional dependencymousebot2022-02-131-7/+9
| | | | | | | | | | | | - keymap / help-echo are conditional on mpv being installed. - maybe mpv (and company, emojify, etc.) should become hard dependencies...
* | docstrings/comments cleanupmousebot2022-02-131-10/+10
| |
* | Merge branch 'develop' into mpv-play-at-pointmousebot2022-02-121-4/+10
|\ \
| * | Fix the timers for auto-updating of relative timestamps.Holger Dürer2022-02-121-4/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | I have no idea how this ever worked, already the original commit (https://github.com/mooseyboots/mastodon.el/commit/746694f0ea75f5fa76739d49509836ccd67d7d65?utm_source=pocket_mylist) seems to have passed a time instead of seconds. The docs for `run-at-time` (https://www.gnu.org/software/emacs/manual/html_node/elisp/Timers.html) make it clear that this cannot work. Now we keep the absolute times but upon calling `run-at-time` we convert that to relative seconds from now.
* | | use tl--field to get media attachments infomousebot2022-02-121-4/+2
| | |
* | | move get-media-types / docstrings.mousebot2022-02-121-12/+15
| | | | | | | | | | | | | | | | | | we have to use mastodon-tl--field for the media types. we can't use mastodon-tl--property, as the 'attachments property for the toot doesn't exist yet when we are looking.
* | | add c-ret binding to author-byline help echomousebot2022-02-121-4/+7
| | |
* | | autoloads and docstringsmousebot2022-02-111-3/+6
| | |
* | | improve propertizing of boost/fave markersmousebot2022-02-111-15/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - previously, boost/fave markers behaved differently depending on whether they had just been created by the user, or if they were already existing and loaded with the timeline. in the first case, they'd not be part of the byline, in the second they would be. we make it that they not part of the byline, so `mastodon-tl--goto-next-toot', which works according to text properties, should always put point after them, on the author-byline. this also means that we can add help-echos and actions to the author byline without having to worry about also adding them to the boost/fave markers. fix call to format-faved-or-boosted-byline
* | | implement playing toot's moving image when point is on author bylinemousebot2022-02-111-4/+54
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - new: mpv-play-video-from-byline - new: find-first-video-in-attachments, returns first moving image attachment from the toot - edit mpv-play-video-at-point to accept args url and type - attachments type/url are now stored in attachments property of the byline - fetched with get-attachments-for-byline - keymap byline-keymap to allow playing with C-RET
* | | display toot's media type when on author bylinemousebot2022-02-111-15/+33
| | |
* | | replace if call with or call in tl--mediamousebot2022-02-111-4/+3
| | |
* | | Merge branch 'develop' into mpv-play-at-pointmousebot2022-02-111-32/+59
|\| |
| * | add go to next toot to tl--threadmousebot2022-02-071-13/+15
| |/ | | | | | | fix go to first toot on thread load
| * implement follow suggestions.mousebot2022-02-071-0/+20
| | | | | | | | | | | | | | | | | | | | | | this factors out display of accounts from mastodon-search--search-query into mastodon-search--insert-users-propertized. mastodon-tl--get-follow-suggestions is the fun to view suggestions. seeing as this allows easy display of profile note under the account handle, i also added this display to --search-query, but it cd be easily disabled by calling --insert-users-propertized without its second arg.
| * place point on byline of first toot on timeline load.mousebot2022-02-051-0/+1
| |
| * update homepage and copyright boilerplatemousebot2022-02-051-1/+2
| |
| * autoload fix for mastodon-notifications--get; set interative to tmousebot2022-01-301-1/+3
| | | | | | | | | | to make `mastodon-notifications--get' available outside our keymap as it needs to be available to evil users and via M-x. otherwise there's no way to run it.
| * handle a buggy empty notificationmousebot2022-01-151-17/+18
| | | | | | | | | | | | i received an notification (also in other clients/web interface) attached to no toot. these checks should allow notifications view to display without tripping up on any such vacant notifs from the server.
* | Merge branch 'develop' into mpv-play-at-pointmousebot2022-01-151-9/+9
|\|
| * FIX local mentions/links checkingmousebot2022-01-111-9/+9
| | | | | | | | | | | | | | | | | | | | | | we remove the hacky non-check for a user handle from mastodon-tl--process-link, so that it /always/ runs mastodon-tl--extract-userhandle-from-url. the in extract-userhandle-from-url, we test if the url host = local instance. if so, we just return buffer-text, which = "@user", with no suffix. else we return a full "@user@instance.url" handle. remove unused var after fix to userhandle parsing
* | add function to play gif/video at point. uses mpv.elmousebot2022-01-111-0/+17
|/ | | | oops fix the mpv require statement
* refactor mastodon-notifications--insert-statusmousebot2021-12-241-3/+7
| | | | | | | | | | | | | which was a copy of mastodon-tl--insert-status. we revert to having just the latter as main function with optional argument. mastodon-notifications--insert-status just calls it with the arg ID. the reason we need the difference is to ensure notifications have their own ID, and not that of the toot the notif refers to, attached as property "toot-id". then we have all functionality working on notifications, such as boosting mentions and so on.
* Merge branch 'main' into developmousebot2021-12-231-13/+9
|\
| * tiny cleanups after Ediff main / mastermousebot2021-12-231-14/+10
| |