joshuto
joshuto copied to clipboard
View mode to display file size and timestamp
Thanks for your cool project. Sorry if I am saying something strange.
Is there any way to display file size and timestamp in the view?
Like ranger's :linemode sizemtime
.
Like nnn's d Detail mode toggle
.
Hi! No, other “linemodes” are not available in Joshuto. Displaying the size only is currently hard-coded. But I agree that other linemodes and especially "custom linemodes" would be a very useful enhancement. I would be happy to take this up but I won't have time the next ~2 months...
@DLFW Thank you🤤 I look forward to it.
Apologies, I am currently busy with life stuff and won't be able to work on Joshuto at the moment xd
Interesting feature. I never knew the existence of this feature while I was using ranger so I never considered implementing it.
However, I'm open to adding this to joshuto :+1:
Ahoi, I have implemented a simple linemode feature which allows three basic linemodes: size, mtime, and sizemtime. → #206
The default key-bindings I have chosen are different from the ranger defaults. Ranger has these builtin linemodes and keybindings:
# Change the line mode
map Mf linemode filename
map Mi linemode fileinfo
map Mm linemode mtime
map Mh linemode humanreadablemtime
map Mp linemode permissions
map Ms linemode sizemtime
map MH linemode sizehumanreadablemtime
map Mt linemode metatitle
As M
is already used in Joshuto for some scrolling, I thought I just go for m
. These are the current default-bindings:
{ keys = [ "m", "s" ], command = "linemode size" },
{ keys = [ "m", "m" ], command = "linemode mtime" },
{ keys = [ "m", "M" ], command = "linemode sizemtime" },
The downside is that mk
is already used for :mkdir
, which means that m
is not exclusively for changing the linemode.
We could use <ctrl>+m
as “leader” for the linemodes instead.
What do you think?
@DLFW Thank you! @kamiyaa How does it feel?
@tkna91: #206 has been merged, if you want to try it out. :wink:
@DLFW Thanks. It would be nice to have a description of the linemode
type in the pre-execution display.
Hi, yes, agree. This is not a linemode-specific feature but the way Joshuto visualizes the key-command completion in genereal. However, I see that it has a special value for the linemodes. I'll keep it in the back of my head. You may also open another Issue to track this.
Hi, yes, agree. This is not a linemode-specific feature but the way Joshuto visualizes the key-command completion in genereal. However, I see that it has a special value for the linemodes. I'll keep it in the back of my head. You may also open another Issue to track this.
I can add this :+1: I think it should be pretty straightforward
4c77c046953a17e2c1792ea1626df3a3f69083e4
@kamiyaa @DLFW Confirmed. Thanks!