all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Marcin Borkowski <mbork@mbork.pl>
To: Help Gnu Emacs mailing list <help-gnu-emacs@gnu.org>
Subject: Long file names in Dired
Date: Fri, 24 Apr 2015 01:10:24 +0200	[thread overview]
Message-ID: <87a8xyo2zj.fsf@mbork.pl> (raw)

Hi all,

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?  If not, where i should tinker to
achieve that?  Would making some parts of the text invisible be a good
way to do that?  If yes, is there any Dired hook I could use for that?

BTW, the /reason/ I have long filenames is that I have a bunch of pdfs
with scientific articles, and I decided that putting the author names,
publication year and a ttile (at least shortened) into the filename
might be a good idea so that I don't get lost.  An alternative would be
e.g. an Org-mode based database with links to files, but then relocating
them would be non-trivial.

TIA,

-- 
Marcin Borkowski
http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski
Faculty of Mathematics and Computer Science
Adam Mickiewicz University



             reply	other threads:[~2015-04-23 23:10 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-04-23 23:10 Marcin Borkowski [this message]
2015-04-24  0:38 ` Long file names in Dired Bob Proulx
2015-04-24  6:29 ` Eli Zaretskii
     [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=87a8xyo2zj.fsf@mbork.pl \
    --to=mbork@mbork.pl \
    --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.