From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Marcin Borkowski Newsgroups: gmane.emacs.help Subject: Re: Long file names in Dired Date: Fri, 24 Apr 2015 11:01:40 +0200 Message-ID: <878udhvr0r.fsf@mbork.pl> References: <87sibq9v12.fsf@debian.uxu> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1429866134 27570 80.91.229.3 (24 Apr 2015 09:02:14 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 24 Apr 2015 09:02:14 +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 11:02:13 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 1YlZUs-0005hj-8d for geh-help-gnu-emacs@m.gmane.org; Fri, 24 Apr 2015 11:02:06 +0200 Original-Received: from localhost ([::1]:43714 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YlZUr-0002kH-MU for geh-help-gnu-emacs@m.gmane.org; Fri, 24 Apr 2015 05:02:05 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34550) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YlZUe-0002ge-V5 for help-gnu-emacs@gnu.org; Fri, 24 Apr 2015 05:01:54 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YlZUd-0006Ii-GP for help-gnu-emacs@gnu.org; Fri, 24 Apr 2015 05:01:52 -0400 Original-Received: from mail.mojserwer.eu ([2a01:5e00:2:52::8]:53509) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YlZUc-0006IP-ND for help-gnu-emacs@gnu.org; Fri, 24 Apr 2015 05:01:51 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by mail.mojserwer.eu (Postfix) with ESMTP id 5CBAC572054 for ; Fri, 24 Apr 2015 11:01:48 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at mail.mojserwer.eu Original-Received: from mail.mojserwer.eu ([127.0.0.1]) by localhost (mail.mojserwer.eu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id qXvVwY9UBMOE for ; Fri, 24 Apr 2015 11:01:46 +0200 (CEST) Original-Received: from localhost (unknown [IPv6:2001:808:114:6:4de9:6543:f604:2dab]) by mail.mojserwer.eu (Postfix) with ESMTPSA id F19AE572050 for ; Fri, 24 Apr 2015 11:01:45 +0200 (CEST) In-reply-to: <87sibq9v12.fsf@debian.uxu> X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a01:5e00:2:52::8 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:103974 Archived-At: On 2015-04-24, at 03:26, Emanuel Berg wrote: > 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, I. HATE. BIBTEX. WITH. A. PASSION. (And I have reasons - basically, BibTeX is a pile of crap. I agree that it /is/ less unusable for writing in English exclusively, but again - it creates /a lot/ more problems than it solves.) That said, I like that idea, though I would use BibLaTeX (which is a modern replacement for BibTeX, curing many - even though not all - of its problems (the main one which it doesn't help is the format for multiple authors), or amsrefs, which is less powerful than Bib(La)TeX, but has a much saner format for multiple names (and is /way/ easier to configure than Bib(La)TeX). > 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 :) Haha. But thanks, I like this idea. (Though using Org-mode properties might be even better than using Bib(La)TeX or amsrefs etc.) Thanks a lot! -- Marcin Borkowski http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski Faculty of Mathematics and Computer Science Adam Mickiewicz University