tats / w3m

Debian's w3m: WWW browsable pager
https://tracker.debian.org/pkg/w3m
Other
870 stars 91 forks source link

Add directory preferences to options #156

Open jidanni opened 3 years ago

jidanni commented 3 years ago

At the top of directory buffers you can change the Type dropdown list to Standard.

Ah! But the user may never see that, as the cursor might be very far down the screen in some subdirectory, e.g. when reading $ w3m file:///home/jidanni/jidanni.org/geo/antipodes/programs/

Hmm, it turns out they are saved in

$ cat ~/.w3m/dirlist
type d
format d
sort n

That is great, but they also should be able to be set via options, but w3m -show-option doesn't list them.

I'm just hoping that everything would still be possible, without requiring interaction. Sure, "just edit .w3m/dirlist" ... but that is not as elegant as -o. By the way, when setting them via -o, maybe they should not be then written to .w3m/dirlist ...

bptato commented 3 years ago

A slight problem with that is, the default external dirlist is a perl script, not a part of the w3m executable (see "Use external program for directory listing" etc in options). So we'd either have to pass these options in the query string/as env variables or directly implement the script into w3m (replacing the default loadLocalDir function). The former is probably the less elegant but also more realistic option (who's got time for the other one...)