[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Dired - ls-switches on Modeline

From: arthur miller
Subject: RE: Dired - ls-switches on Modeline
Date: Wed, 13 May 2020 16:01:49 +0000

Sure, not at home now, but can do later in the evening.


Skickat från min Samsung Galaxy-smartphone.

-------- Originalmeddelande --------
Från: Drew Adams <address@hidden>
Datum: 2020-05-13 17:28 (GMT+01:00)
Till: Arthur Miller <address@hidden>, address@hidden
Ämne: RE: Dired - ls-switches on Modeline

> I suggest as a usability improvement to add a user option to
> enable/disable display of ls-switches on modeline

Sounds good to me.

E.g. A user option whose value is a format string
that accepts the value of `dired-actual-switches'
and returns the text to use in the mode-line.
Trivial to do.

You might want to file an enhancement request for
this (`M-x report-emacs-bug').

If the request doesn't get accepted for some reason
then perhaps I'll do it for Dired+.el.

I already add additional info to the mode-line (on
a hook, so you can remove it):


 Show number of marked, flagged, and current-list lines in mode-line.
 (Flagged means flagged for deletion.)
 If the current line is marked/flagged and there are others
 marked/flagged after it then show `N/M', where `N' is the number
 marked/flagged through the current line and `M' is the total number

 If the current line is for a file then show `L/T', where `L' is the
 line number in the current listing and `T' is the number of files in
 that listing.  If option `diredp-count-.-and-..-flag' is non-nil then
 count also `.' and `..'.

 Also abbreviate `mode-name', using "Dired/" instead of "Dired by".


reply via email to

[Prev in Thread] Current Thread [Next in Thread]