Had this idea because I wanted to make a post and I clicked new and then pressed : to attach an image
Post
Remote status
Context
8Had this idea because I wanted to make a post and I clicked new and then pressed : to attach an image
@WandererUber if your going the vim route, you could go all the way and allow custom keybinds like <leader>a to attach an image instead of having to type the full command
I'm still learning vim as you know. In my head I was probably expecting my often-used pepe_neutral.jpg image macro to just pop up in the : list like the custom emoji do, because I had just tabbed over from nvim. And then I thought it should probably be a command or it will conflict with the :emoji: syntax.
probably not gonna get implemented in a million years I'll be over the moon if I can get the posts to show up lol
one step at a time!
@WandererUber re vim: i think most people make keybinds for commands they type a lot in vim. though it can be pretty specific to the individual in question.
re fedi client: are you making a tui client? if so, are you using a tui framework (iirc rust and go have some pretty well-liked ones)? depedning on how vim like you want it to be, you might also consider just having the client be a lua plugin for nvim. not sure if you actually get much lift from that though. also i imagine you meant two different commands, one for emojis and one for attached images... i suppose for the former, you could have completions kickin on typing : in insert mode like in nvim with cmp. for the latter it could be more like a normal mode command
I am not making any promises. Yes I am trying.
>if so, are you using a tui framework
yes. notcurses (watch the trailer)
>you might also consider just having the client be a lua plugin for nvim
disregarding that this project is already going to be that, forcing it into vim is more trouble than it's worth. I'd have to cook up kitty image protocol escape codes manually, for example. It's not really suited for the task, I think. Again, disregarding that this project is a fucking terminal client for a media feed, lol
@WandererUber thats a cool, if ambitious, project - best of luck with that. i wanna say ive seen a few others use terminal clients for fedi (probably p) but i doubt they supported anything besides text. as an aside, ive always wanted to try making a fork of bloatfe with mathjax support but its low on my project priority list
but anyway, from what I gather BloatFE is kind of like the old web where the buttons trigger server-side actions? And you want math equation rendering in that?
You're already using BloatFE then, I take it?
Honestly for that niche of a thing I would probably just hack together a greasemonkey script or something lol
@WandererUber i assumed you would be using libcurl regardless since notcurses is a c library (though it has bindings for other languages so maybe not)... it might be worth doing a practice project on something simpler than fedi to get your frontend bearings.
i would use bloatfe more if it was on here the way pleromafe is. i have a local bloatfe that i run every now and then, but i want to do some other minor tweaks besides the math rendering before making that my primary fe. i also want to see how much i can get away with writing in go since i prefer that to javascript
@WandererUber re bearings, one of my first big c ui projects was/is a jellyfin client in gtk, (still WIP) and i found a lot of value in some excursions with other smaller frontend-y projects that were simpler to reason about
Replies
0