* don't show dired header
@ 2022-05-05 1:22 Emanuel Berg
2022-05-05 3:43 ` [External] : " Drew Adams
2022-05-05 15:39 ` Marcin Borkowski
0 siblings, 2 replies; 11+ messages in thread
From: Emanuel Berg @ 2022-05-05 1:22 UTC (permalink / raw)
To: help-gnu-emacs
I think this line
/home/incal/.emacs.d/emacs-init: (32.8 GiB available)
is pretty meaningless, can I disable it and instead get an
extra line to list the directory files?
See this screenshot:
https://dataswamp.org/~incal/figures/emacs/dired.png
--
underground experts united
https://dataswamp.org/~incal
^ permalink raw reply [flat|nested] 11+ messages in thread
* RE: [External] : don't show dired header
2022-05-05 1:22 don't show dired header Emanuel Berg
@ 2022-05-05 3:43 ` Drew Adams
2022-05-05 3:58 ` Emanuel Berg
2022-05-05 15:39 ` Marcin Borkowski
1 sibling, 1 reply; 11+ messages in thread
From: Drew Adams @ 2022-05-05 3:43 UTC (permalink / raw)
To: Emanuel Berg, help-gnu-emacs@gnu.org
> I think this line
>
> /home/incal/.emacs.d/emacs-init: (32.8 GiB available)
>
> is pretty meaningless, can I disable it and instead get an
> extra line to list the directory files?
No, not out of the box, as far as I know.
It's not really meaningless, but it may not
be very useful for you (and that's what
counts). To not include it you'll need to
tweak or advise some Dired functions, I think.
___
That line might not appear very useful if you
never list more than one directory in a Dired
buffer (though even then it can help).
But be aware of `i', which inserts a subdir
listing (which can have its own `ls' switches
etc.) in the same Dired buffer.
When you have an inserted subdir listing, its
own dir header line is maybe more helpful to
you, to recognize its listing, than is the
top-level dir heading.
A Dired buffer can have any number of dir
listings. You can mark files in any of them,
act on the marked files, etc. Dired actions
are thus not limited to the files and subdirs
of only one directory. You can act on
anything that's listed in the buffer.
`C-M-n' and `C-M-p' take you the next and
previous such inserted subdir listing. (`>'
and `<' take you to the next and previous
dir name in a listing.)
`C-M-u' and `C-M-d' take you up and down a
listing level. E.g., if you have inserted
listings for .../a/, .../a/b/, .../a/b/c/,
and if point is in the .../a/b/c/ listing,
then `C-M-u' twice, or `C-2 C-M-u', takes
you to the listing for .../a/.
___
[If you use `dired+.el' then `i' flips point
back and forth between a subdir entry in a
parent listing and the inserted listing for
that subdir.]
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [External] : don't show dired header
2022-05-05 3:43 ` [External] : " Drew Adams
@ 2022-05-05 3:58 ` Emanuel Berg
2022-05-05 15:48 ` Drew Adams
0 siblings, 1 reply; 11+ messages in thread
From: Emanuel Berg @ 2022-05-05 3:58 UTC (permalink / raw)
To: help-gnu-emacs
Drew Adams wrote:
>> I think this line
>>
>> /home/incal/.emacs.d/emacs-init: (32.8 GiB available)
>>
>> is pretty meaningless, can I disable it and instead get an
>> extra line to list the directory files?
>
> No, not out of the box, as far as I know.
Not good.
> That line might not appear very useful if you never list
> more than one directory in a Dired buffer (though even then
> it can help).
If it is useful when using subdirs it should appear then and
only then.
How is it useful when not using subdirs? To tell the size left
on the disk? If so, make it appear in the mode line instead of
wasting one full line for that. And have that optional as well
when at it ...
See this screenshot:
https://dataswamp.org/~incal/figures/emacs/dired.png
--
underground experts united
https://dataswamp.org/~incal
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: don't show dired header
2022-05-05 1:22 don't show dired header Emanuel Berg
2022-05-05 3:43 ` [External] : " Drew Adams
@ 2022-05-05 15:39 ` Marcin Borkowski
2022-05-05 18:58 ` Emanuel Berg
1 sibling, 1 reply; 11+ messages in thread
From: Marcin Borkowski @ 2022-05-05 15:39 UTC (permalink / raw)
To: Emanuel Berg; +Cc: help-gnu-emacs
On 2022-05-05, at 03:22, Emanuel Berg <incal@dataswamp.org> wrote:
> I think this line
>
> /home/incal/.emacs.d/emacs-init: (32.8 GiB available)
>
> is pretty meaningless, can I disable it and instead get an
> extra line to list the directory files?
Well, the name of the current directory is pretty useful here, and you
don't actually lose anything with displaying the available space, no?
BTW, you can disable showing the available space (check out the
`dired-free-space' variable). I don't think you can disable displaying
the directory, though.
Best,
--
Marcin Borkowski
http://mbork.pl
^ permalink raw reply [flat|nested] 11+ messages in thread
* RE: [External] : don't show dired header
2022-05-05 3:58 ` Emanuel Berg
@ 2022-05-05 15:48 ` Drew Adams
2022-05-05 19:01 ` Emanuel Berg
0 siblings, 1 reply; 11+ messages in thread
From: Drew Adams @ 2022-05-05 15:48 UTC (permalink / raw)
To: Emanuel Berg, help-gnu-emacs@gnu.org
> How is it useful when not using subdirs?
It shows the absolute name of the directory.
By default, only the relative name is shown
in the mode-line or frame title.
You could of course show that info elsewhere.
> To tell the size left on the disk?
I don't see that on the same line, in vanilla
Emacs 27 or prior, or with an Emacs 28 pretest
from 2022-02-10.
Info about the number of files and disk usage
is instead shown on a separate line after the
dir-name line. And that separate line is
hidden when you hide details (with `)`).
If you see that info on the same line as the
dir name with `emacs -Q', then that change
must have occurred after Emacs 27.
___
With Dired+ and files+.el or ls-lisp+.el, that
line of info is different, BTW:
files 102/220 space used 13642 available 140788
meaning that the buffer shows 102 files out of
the 220 that are in the directory (e.g. you use
`dired' with a wildcard), and 13642 Kbytes are
used for the dir, out of 140788 Kbytes total.
And if you use help-fns+.el then that info is a
link/button (RET, mouse-2), which shows you more
info (`describe-file'), in *Help*, including the
times of last access, last modification, and last
status change; the number of links; the UID; the
GID; the Inode; and the device number.
> If so, make it appear in the mode line instead
> of wasting one full line for that. And have
> that optional as well when at it ...
Go for it. Use the sauce, Luke.
> See this screenshot...
In your screenshot I still see the directory
header line. Did you mean to remove it?
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: don't show dired header
2022-05-05 15:39 ` Marcin Borkowski
@ 2022-05-05 18:58 ` Emanuel Berg
2022-05-06 5:17 ` Marcin Borkowski
0 siblings, 1 reply; 11+ messages in thread
From: Emanuel Berg @ 2022-05-05 18:58 UTC (permalink / raw)
To: help-gnu-emacs
Marcin Borkowski wrote:
>> I think this line
>>
>> /home/incal/.emacs.d/emacs-init: (32.8 GiB available)
>>
>> is pretty meaningless, can I disable it and instead get an
>> extra line to list the directory files?
>
> Well, the name of the current directory is pretty useful
> here
Nope, I have that in the mode line, see the screenshot
https://dataswamp.org/~incal/figures/emacs/dired.png
> and you don't actually lose anything with displaying the
> available space, no?
What you loose is one line of file listing. In the screenshot
I could have 13, but have 12. As a math professional, how do
you compute the possible improvement which BTW should be easy,
almost trivial to implement (and if it isn't, dired's code
isn't good!).
Uhm, is this right?
(format "%+0.1f%%" (- (* (/ 13 12.0) 100) 100))
> BTW, you can disable showing the available space (check out
> the `dired-free-space' variable). I don't think you can
> disable displaying the directory, though.
Good, but you don't get the percent with that.
--
underground experts united
https://dataswamp.org/~incal
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [External] : don't show dired header
2022-05-05 15:48 ` Drew Adams
@ 2022-05-05 19:01 ` Emanuel Berg
2022-05-05 21:06 ` Drew Adams
0 siblings, 1 reply; 11+ messages in thread
From: Emanuel Berg @ 2022-05-05 19:01 UTC (permalink / raw)
To: help-gnu-emacs
Drew Adams wrote:
> It shows the absolute name of the directory. By default,
> only the relative name is shown in the mode-line or
> frame title.
See the screenshot, I have that solved:
https://dataswamp.org/~incal/figures/emacs/dired.png
> In your screenshot I still see the directory header line.
> Did you mean to remove it?
How do you do that?
--
underground experts united
https://dataswamp.org/~incal
^ permalink raw reply [flat|nested] 11+ messages in thread
* RE: [External] : don't show dired header
2022-05-05 19:01 ` Emanuel Berg
@ 2022-05-05 21:06 ` Drew Adams
2022-05-05 21:14 ` Emanuel Berg
0 siblings, 1 reply; 11+ messages in thread
From: Drew Adams @ 2022-05-05 21:06 UTC (permalink / raw)
To: Emanuel Berg, help-gnu-emacs@gnu.org
> > In your screenshot I still see the directory
> > header line. Did you mean to remove it?
>
> How do you do that?
That was your original question, no?
"can I disable it?"
To that I replied:
No, not out of the box, as far as I know.
To not include it you'll need to tweak
or advise some Dired functions, I think.
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [External] : don't show dired header
2022-05-05 21:06 ` Drew Adams
@ 2022-05-05 21:14 ` Emanuel Berg
0 siblings, 0 replies; 11+ messages in thread
From: Emanuel Berg @ 2022-05-05 21:14 UTC (permalink / raw)
To: help-gnu-emacs
Drew Adams wrote:
> That was your original question, no?
>
> "can I disable it?"
>
> To that I replied:
>
> No, not out of the box, as far as I know.
>
> To not include it you'll need to tweak or advise some
> Dired functions, I think.
I understood, but how?
--
underground experts united
https://dataswamp.org/~incal
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: don't show dired header
2022-05-05 18:58 ` Emanuel Berg
@ 2022-05-06 5:17 ` Marcin Borkowski
2022-05-06 15:35 ` Emanuel Berg
0 siblings, 1 reply; 11+ messages in thread
From: Marcin Borkowski @ 2022-05-06 5:17 UTC (permalink / raw)
To: Emanuel Berg; +Cc: help-gnu-emacs
On 2022-05-05, at 20:58, Emanuel Berg <incal@dataswamp.org> wrote:
> Marcin Borkowski wrote:
>
>>> I think this line
>>>
>>> /home/incal/.emacs.d/emacs-init: (32.8 GiB available)
>>>
>>> is pretty meaningless, can I disable it and instead get an
>>> extra line to list the directory files?
>>
>> Well, the name of the current directory is pretty useful
>> here
>
> Nope, I have that in the mode line, see the screenshot
>
> https://dataswamp.org/~incal/figures/emacs/dired.png
>
>> and you don't actually lose anything with displaying the
>> available space, no?
Interesting, I don't.
Best,
--
Marcin Borkowski
http://mbork.pl
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: don't show dired header
2022-05-06 5:17 ` Marcin Borkowski
@ 2022-05-06 15:35 ` Emanuel Berg
0 siblings, 0 replies; 11+ messages in thread
From: Emanuel Berg @ 2022-05-06 15:35 UTC (permalink / raw)
To: help-gnu-emacs
Marcin Borkowski wrote:
>> Nope, I have that in the mode line, see the screenshot
>>
>> https://dataswamp.org/~incal/figures/emacs/dired.png
>
> Interesting, I don't.
It's `dired-directory'.
https://dataswamp.org/~incal/emacs-init/mode-line.el
--
underground experts united
https://dataswamp.org/~incal
^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2022-05-06 15:35 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-05-05 1:22 don't show dired header Emanuel Berg
2022-05-05 3:43 ` [External] : " Drew Adams
2022-05-05 3:58 ` Emanuel Berg
2022-05-05 15:48 ` Drew Adams
2022-05-05 19:01 ` Emanuel Berg
2022-05-05 21:06 ` Drew Adams
2022-05-05 21:14 ` Emanuel Berg
2022-05-05 15:39 ` Marcin Borkowski
2022-05-05 18:58 ` Emanuel Berg
2022-05-06 5:17 ` Marcin Borkowski
2022-05-06 15:35 ` Emanuel Berg
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).