From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Emanuel Berg Newsgroups: gmane.emacs.help Subject: Re: Long file names in Dired Date: Fri, 24 Apr 2015 03:26:01 +0200 Organization: Aioe.org NNTP Server Message-ID: <87sibq9v12.fsf@debian.uxu> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1429838725 11267 80.91.229.3 (24 Apr 2015 01:25:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 24 Apr 2015 01:25:25 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Apr 24 03:25:21 2015 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1YlSMp-0002WO-Nz for geh-help-gnu-emacs@m.gmane.org; Fri, 24 Apr 2015 03:25:19 +0200 Original-Received: from localhost ([::1]:42542 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YlSMo-0000w1-Pv for geh-help-gnu-emacs@m.gmane.org; Thu, 23 Apr 2015 21:25:18 -0400 Original-Path: usenet.stanford.edu!news.kjsl.com!feeder.erje.net!1.eu.feeder.erje.net!news.etla.org!aioe.org!.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 45 Original-NNTP-Posting-Host: feB02bRejf23rfBm51Mt7Q.user.speranza.aioe.org Original-X-Complaints-To: abuse@aioe.org User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux) X-Notice: Filtered by postfilter v. 0.8.2 Cancel-Lock: sha1:Zq2z94GlR+Yn1M/MDoNBjNT22jc= Mail-Copies-To: never Original-Xref: usenet.stanford.edu gnu.emacs.help:211688 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:103970 Archived-At: Marcin Borkowski writes: > 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. This idea is even better - use BibTeX. In a .bib file, write entries like this - every book, article, paper, etc. you read, you make an entry: @book{cpp, author = {Bjarne Stroustrup}, title = {The C++ Programming Language}, edition = {Second Edition}, publisher = {Addison-Wesley}, year = 1992, ISBN = {0-201-53992-6} } In LaTeX, a reference is made with \cite, e.g.: C++ is an extension of C, which is the system programming language of choice since the early-mid 70s. \cite[pp. v-vi, 6, 41-42]{cpp} Then rename the file: cpp.pdf If you use Emacs to view PDFs as well, for the .bib file (the BibTeX mode), write a defun that takes the entry-around-point's name ('cpp' in this case) and combines it with the path where you have the PDF (all of them), and suddenly you are only the extention away from having an as-is text-editable menu to browse all that stuff as well. Don't thank me. I'll send an invoice :) -- underground experts united http://user.it.uu.se/~embe8573