From: ST <smntov@gmail.com>
To: Emacs-orgmode@gnu.org
Subject: Re: Link abbreviations: include abbreviation table and linkwords with spaces
Date: Fri, 16 Mar 2018 09:38:43 +0200 [thread overview]
Message-ID: <1521185923.17859.1.camel@gmail.com> (raw)
In-Reply-To: <87sh92lpr5.fsf@nicolasgoaziou.fr>
Hello,
to those engineers, who are responsible for adding new features: does this case
of enabling linkwords with spaces (see below) qualifies as a new feature
request? If yes - where should I file it?
Thank you!
----------------------------------------------------------------
>
> > Why should this not be parse-able? Cut #+LINK: from the beginning, URL
> > (last token) from the end, and the rest will be "link word", even with
> > (several) spaces in between...
>
> Can we be sure so-called URL part will never contain a space? You put
> a constraint either on the linkword or on the "URL" part.
1. If I were to choose on which part to put a constraint - I'll do so
with the "URL" part as it appears only once and in the best case as meta
data in comments, while "link word" can appear tens or hundreds of times
in the text itself, which needs to look nice.
2. Spaces in URLs a rare, while all docs that have more than one word in
their title look nicer with spaces. I found only 3 cases here:
https://orgmode.org/manual/External-links.html
3. Anyway the problem of spaces in the URLs is not a new one - you have
the same in bash. Solution - just put URL part in "URL", as you usually
do on command line. And as you already do defining
org-link-abbrev-alist:
("url-to-ja" . "http://translate.google.fr/translate?sl=en&tl=ja&u=%h")
so for the cases where there must be spaces in the URL do:
#+LINK: My Book "path/to/My Book.org"
but by default in normal case just use:
#+LINK: My Book path/to/My_Book.org
What is your opinion? Can this qualify as feature request?
Thanks!
next prev parent reply other threads:[~2018-03-16 7:38 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-03-12 20:35 Link abbreviations: include abbreviation table and linkwords with spaces ST
2018-03-12 23:11 ` Nicolas Goaziou
2018-03-13 8:51 ` ST
2018-03-13 9:18 ` Nicolas Goaziou
2018-03-13 11:53 ` ST
2018-03-14 14:02 ` Nicolas Goaziou
2018-03-14 18:32 ` ST
2018-03-16 7:38 ` ST [this message]
2018-03-16 21:57 ` Nicolas Goaziou
2018-03-18 9:20 ` ST
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
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1521185923.17859.1.camel@gmail.com \
--to=smntov@gmail.com \
--cc=Emacs-orgmode@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 public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
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).