From: Eli Zaretskii <eliz@gnu.org>
To: help-gnu-emacs@gnu.org
Subject: Re: Long file names in Dired
Date: Fri, 24 Apr 2015 09:29:44 +0300 [thread overview]
Message-ID: <83bnieyr6v.fsf@gnu.org> (raw)
In-Reply-To: <87a8xyo2zj.fsf@mbork.pl>
> From: Marcin Borkowski <mbork@mbork.pl>
> Date: Fri, 24 Apr 2015 01:10:24 +0200
>
> so I have some really, really long filenames (say, more than 70
> characters), and I'd like to shorten them so they don't spill to the
> next line in Dired. I can toggle-truncate-lines, of course, but then
> I don't see the extension, and I'd prefer to truncate the part /before/
> the extension.
>
> Is there any Dired hack enabling this?
Not that I know of (but others might, so don't consider that as a
definitive answer).
One obvious way to show long file names is to have wider
frames/windows.
Failing that, I think we will welcome a patch that shortens file names
in Dired intelligently, basically displaying something like
foo...bar.ext, with the place of the ellipsis strategically computed
to show as much of the file name as possible, including the extension.
If you, or someone else, decide to work on that, beware of the fact
that Dired puts a special text property on the file name, which is
needed for correct operation of Dired commands when the file names
include special characters, like whitespace. You should be careful
not to destroy this subtle feature.
next prev parent reply other threads:[~2015-04-24 6:29 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-04-23 23:10 Long file names in Dired Marcin Borkowski
2015-04-24 0:38 ` Bob Proulx
2015-04-24 6:29 ` Eli Zaretskii [this message]
[not found] <mailman.1494.1429830642.904.help-gnu-emacs@gnu.org>
2015-04-24 1:26 ` Emanuel Berg
2015-04-24 9:01 ` Marcin Borkowski
2015-04-24 9:12 ` Rasmus
2015-04-24 9:37 ` Marcin Borkowski
2015-04-24 10:19 ` Rasmus
2015-04-24 21:02 ` Marcin Borkowski
2015-04-24 21:10 ` Marcin Borkowski
[not found] ` <mailman.1511.1429866115.904.help-gnu-emacs@gnu.org>
2015-04-25 1:29 ` Emanuel Berg
2015-04-25 8:18 ` Marcin Borkowski
[not found] ` <mailman.1581.1429950075.904.help-gnu-emacs@gnu.org>
2015-04-25 11:20 ` Emanuel Berg
2015-05-03 22:59 ` Marcin Borkowski
[not found] ` <mailman.2273.1430694000.904.help-gnu-emacs@gnu.org>
2015-05-04 0:22 ` Emanuel Berg
2015-05-04 0:41 ` Emanuel Berg
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=83bnieyr6v.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.