The lack of keyboard interface on Lemmy is killing me, but really what I want is a good client in Emacs. However, it’s beyond my Elisp to design and start such a project, but I could probably help. Anyone on it?

  • blawsybogsy
    link
    fedilink
    English
    arrow-up
    12
    ·
    edit-2
    1 year ago

    I have quite a few endpoints working now, each mostly just with the basic options implemented, and its easy to add endpoints with a handy macro i wrote. There are still quite a few quirks with lemmy itself that i’m struggling to work out, like how to search for my second account on another instance and actually have it appear in results. I might ask in a support room. The type-heavy rust and ts code is super foreign to me, it’s also very large. Moreover, the various documentation links, another one is https://join-lemmy.org/api/classes/LemmyHttp.html, sometime contradict each other. Maybe having the basics down I cd start on some necrco diy interface. [posted and edited via lem.el]

    • asterisk@lemmy.world
      link
      fedilink
      English
      arrow-up
      4
      ·
      1 year ago

      I think this would be the best way to go.

      Myself, I’d love to be able to interact with Lemmy through Gnus, but it would be great to have a general emacs API for flexibility so you can choose the front-end.

      It looks as though the api for a client is defined in api_common.

          • blawsybogsy
            link
            fedilink
            English
            arrow-up
            3
            ·
            1 year ago

            https://codeberg.org/martianh/lem has some basics, functions returning plain JSON. i didn’t do any auth, but if its oauth and so similar to mastodon.el, we cd also just move its auth code into the fedi.el library. and fedi-http.el is already set up to handle auth tokens.

            discovering lemmy’s query parameters is quite a pain for me, as i don’t know rust.

            • asterisk@lemmy.world
              link
              fedilink
              English
              arrow-up
              1
              ·
              1 year ago

              That looks a promising start. I’ll have a look into it when I have some time. I hope some others do too!

              I don’t know Rust either, but it does appear to be relatively easy to understand; could be worse anyhow.

              It would be nice to have a fully documented API to work from: probably not a priority for the lemmy devs right now, I’d imagine.

            • blawsybogsy
              link
              fedilink
              English
              arrow-up
              1
              ·
              edit-2
              1 year ago

              I have interactive commands to view communities, view posts, and reply, plus not-interactive editing and search stuff working. but i haven’t worked out how to get threading right, so comments under posts are all out of whack. i’ll slowly keep trying to pilfer stuff from mastodon.el, which can make progress fast. work is in develop branch. [sent via lem.el]

    • Phillip J Phry@lemmy.world
      link
      fedilink
      English
      arrow-up
      1
      ·
      1 year ago

      Do you have, or plan to have, any code up in a github repo? I’m decent with elisp and this sounds like a fun thing to hack on. My spare time is spread a little thin, so I doubt I’ll get to start on anything anytime soon, but I could totally try to contribute. If not, no worries.

      • blawsybogsy
        link
        fedilink
        English
        arrow-up
        1
        ·
        1 year ago

        https://codeberg.org/martianh/lem is the repo. best to let me know when you want to work on something in an issue, especially as for a lot of things there’s still the option of pulling code from mastodon.el to make things easier.

    • StrangeAstronomer
      link
      fedilink
      English
      arrow-up
      2
      ·
      1 year ago

      FWIW I’m reading lemmy RSS feed with elfeed (hope this gets through - popping my lemmy cherry here)

      • blawsybogsy
        link
        fedilink
        English
        arrow-up
        1
        ·
        edit-2
        1 year ago

        can you see comments that way? you just subscribe to communities i imagine?

        • StrangeAstronomer
          link
          fedilink
          English
          arrow-up
          1
          ·
          1 year ago

          Sorry for delayed response, just getting used to lemmy …

          No, I don’t see comments - if I’m interested in the headline, I press ‘b’ to pop up the full item in my browser.

          Yes, I subscribe to communities like this:

          (use-package elfeed
            :bind (:map elfeed-search-mode-map
                        ("s" . elfeed-search-set-filter)
                        ("S" . elfeed-search-live-filter))
            :config (setf elfeed-sort-order 'ascending))
          
          ;; elfeed-dashboard is a nice add-on
          (use-package elfeed-dashboard
            :ensure t
            :bind ("C-x w" . 'elfeed-dashboard)
            :config
            (setq elfeed-dashboard-file "~/.config/emacs/elfeed-dashboard.org")
            ;; update feed counts on elfeed-quit
            (advice-add 'elfeed-search-quit-window :after #'elfeed-dashboard-update-links))
          
          (setq elfeed-feeds '(
                               ("http://xkcd.com/rss.xml" comic xkcd)
                               ("http://rss.slashdot.org/Slashdot/slashdotMain" slashdot)
                               ("https://www.reddit.com/r/emacs/new/.rss?sort=new" reddit emacs)
                               ("https://www.reddit.com/r/linux/new/.rss?sort=new" reddit linux)
                               ("https://rss.beehiiv.com/feeds/iiTciQgHPG.xml" fossweekly linux)
                               ("https://distrowatch.com/news/dw.xml" news distrowatch linux)
                               ("http://oglaf.com/feeds/rss/" comic oglaf)
                               ("https://www.reddit.com/r/linuxquestions/new/.rss?sort=new" reddit linuxquestions)
                               ("https://www.reddit.com/r/fedora/new/.rss?sort=new" reddit fedora)
                               ("https://feeds.bbci.co.uk/news/rss.xml" news bbc)
                               ("https://www.rt.com/rss/" news rt)
                               ("https://hnrss.org/frontpage?count=100" news hacker)
                               ("https://www.reddit.com/r/swaywm/new/.rss?sort=new" reddit sway)
                               ("https://www.reddit.com/r/i3wm/new/.rss?sort=new" reddit i3wm)
                               ("https://www.reddit.com/r/nordvpn/new/.rss?sort=new" reddit nordvpn)
                               ("https://lwn.net/headlines/rss" news LWN.net)
                               ("https://lobste.rs/t/linux.rss" news lobsterlinux linux)
                               ("https://www.emacswiki.org/emacs?action=rss" news EmacsWiki emacs)
                               ("https://feeds.arstechnica.com/arstechnica/index" news arstechnica)
                               ("https://www.engadget.com/rss.xml" news engadget)
                               ("https://lemmy.ml/feeds/c/emacs.xml?sort=Active" emacs lemmy)
                               ("https://lemmy.ml/feeds/c/linux.xml?sort=New" linux lemmy)
                               ("https://lemmy.ml/feeds/c/swaywm.xml?sort=New" sway lemmy)))
          
  • Nuuskis@sopuli.xyz
    link
    fedilink
    English
    arrow-up
    5
    arrow-down
    1
    ·
    1 year ago

    Help the world and start learning Elisp while writing a Lemmy client.

    • sping@lemmy.sdf.orgOP
      link
      fedilink
      English
      arrow-up
      3
      ·
      1 year ago

      The point is there are people out there who are very familiar with the options for making this, who could easily kick-start a solution that would be more rational and better designed and based on a well conceived base. If I were to do it I would re-invent the wheel and flail around with awkward solutions.

      I do know Elisp and have written packages so am at a basic-intermediate level. I just recognize that experience has benefits and I could contribute best by enhancing and fixing someone else’s base design.

      • Nuuskis@sopuli.xyz
        link
        fedilink
        English
        arrow-up
        1
        arrow-down
        1
        ·
        1 year ago

        I’m not forcing you, but “re-invent the wheel” is a bit misconception when Lemmy itself is in the very early development stage.

        • sping@lemmy.sdf.orgOP
          link
          fedilink
          English
          arrow-up
          3
          ·
          1 year ago

          You misunderstand me. I mean reinventing the wheel of the various functions the solution requires. The actual communication with Lemmy will be a tiny fraction of the work.

          • zmhanham@lemmy.world
            link
            fedilink
            English
            arrow-up
            1
            ·
            1 year ago

            It’s always a learning opportunity regardless! Could be a great portfolio project as well. If you’re worried about reinventing the wheel: Google every step of the way to find if a well supported package already exists for what you’re trying to do. Read code of other popular packages that implement that feature you need and “steal” it from them. Maybe your lisp won’t be very idiomatic but that can always be fixed and you have to learn that through experience anyways.

  • torgeir
    link
    fedilink
    English
    arrow-up
    2
    ·
    1 year ago

    I’d love a variant of thanhvg/emacs-hnreader or thanhvg/emacs-reddigg!

  • blawsybogsy
    link
    fedilink
    English
    arrow-up
    2
    ·
    1 year ago

    made some progress. mainly spent time working on getting the sorting types and listing types going, so you can cycle between them on the go. v basic display of post details in byline, etc., but that can easily be spruced up by pulling code from mastodon.el. + markdown rendered posts/comments, uwu!

    https://codeberg.org/martianh/lem. the readme has a rough todo list.

    logging in and loading lem as package is still pretty rough, or kinda broken. but i’ll get it sorted soon.

    still gotta build a comments tree also, that’s a biggie.

  • TrivialBetaState@sopuli.xyz
    link
    fedilink
    English
    arrow-up
    1
    ·
    1 year ago

    That’s a brilliant idea! I hope that someone will pick it up and develop it. I’ve been super excited with Lemmy and the fediverse and if this happens it will take the whole experience to another level!

  • solrize
    link
    fedilink
    English
    arrow-up
    1
    ·
    1 year ago

    I had also been thinking about this and figured it would make sense as a backend for gnus.el. I thught of starting a thread here but found this one first, so am posting to say I’m also interested in using such a thing. Idk if I’m organized enough to code it myself, due to RL distractions.