First draft get `ranger`-in-thread as `/upload` file picker B)
As per wayy too much noise while I rubber ducked through this in the chat room 😂
Obviously much thanks to @tulir for help with the goroutine syncing stuff in terms of supporting suspending gomuks' UI while ranger runs 🏄🏼
Much more ToDo:
-
[ ] fix the panic when
.config/gomuks/_last_upload_file.txtdoes not exist 😂- [ ] should we rename this to
upload_file_history.tomlor something? - maybe this would be handy so that users can check the record of all their uploads?
- [ ] should we rename this to
-
[ ] put up a video of this new integration for everyone to see 😎
-
[ ] add back original support for
zenityfile browser?- imo using
rangerlike this is wayy more in the spirit ofgomuks, so maybe you'll want to just drop it?
- imo using
-
[ ] add optional
i3-msg exec $TERMINAL -e rangersupport so that you get the same behavior aszenitywhere a whole new terminal (emulator) is spawned and then closes onrangerexit. -
[ ] it'd be suuuper slick if we could use ranger for opening media files as well - eg. when clicking an inline image?
Hmm just realizing that https://github.com/tulir/gomuks/pull/374 possibly relates to this as well in feature scope terms since ranger does allow multi-file selection via its --choosefiles=OUTFILE flag.
I am coming back to this BTW!
Just going through re-orging all my foss PRs that need to get finalized up. Please don't delete / close 👍🏼