emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Bug: Add an option for org-html-self-link-headlines to add an anchor-link instead of making the headline a link. [9.4.5 (9.4.5-16-g94be20-elpaplus @ /home/lockywolf/.emacs.d/elpa/org-plus-contrib-20210412/)]
@ 2021-05-23 11:25 Vladimir Nikishkin
  2021-05-30  6:05 ` Ihor Radchenko
  0 siblings, 1 reply; 3+ messages in thread
From: Vladimir Nikishkin @ 2021-05-23 11:25 UTC (permalink / raw)
  To: emacs-orgmode



Hello, everyone!

May I suggest a feature addition in org?

The setting org-html-self-link-headlines at the moment turns headlines
into links to themselves. While this is an excellent tool to make
references to the "place where I am reading now", it is a bit confusing,
because the reader may think that this link leads to some external
valuable content.

Would it be possible to, instead, add a small link, with the same href,
and the visible part of something short, such as (#) or (*) hear the
headline.

Such "small anchors" are almost universally seen as "technical", and
thus not leading to valuable content, but are still noticeable enough to
just "copy link location" when required.

Many thanks to people who develop org!

Emacs  : GNU Emacs 27.1 (build 1, x86_64-slackware-linux-gnu, GTK+ Version 3.24.24)
 of 2021-02-18
Package: Org mode version 9.4.5 (9.4.5-16-g94be20-elpaplus @ /home/lockywolf/.emacs.d/elpa/org-plus-contrib-20210412/)
-- 
Vladimir Nikishkin (MiEr, lockywolf)
(Laptop)


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Bug: Add an option for org-html-self-link-headlines to add an anchor-link instead of making the headline a link. [9.4.5 (9.4.5-16-g94be20-elpaplus @ /home/lockywolf/.emacs.d/elpa/org-plus-contrib-20210412/)]
  2021-05-23 11:25 Bug: Add an option for org-html-self-link-headlines to add an anchor-link instead of making the headline a link. [9.4.5 (9.4.5-16-g94be20-elpaplus @ /home/lockywolf/.emacs.d/elpa/org-plus-contrib-20210412/)] Vladimir Nikishkin
@ 2021-05-30  6:05 ` Ihor Radchenko
  2021-05-30  6:48   ` Timothy
  0 siblings, 1 reply; 3+ messages in thread
From: Ihor Radchenko @ 2021-05-30  6:05 UTC (permalink / raw)
  To: Vladimir Nikishkin; +Cc: emacs-orgmode, Timothy

Vladimir Nikishkin <lockywolf@gmail.com> writes:

> Would it be possible to, instead, add a small link, with the same href,
> and the visible part of something short, such as (#) or (*) hear the
> headline.

This sounds useful. An example of implementation is
https://tecosaur.github.io/emacs-config/config.html

Timothy, would you be interested to prepare the patch out of your
config?

Best,
Ihor


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Bug: Add an option for org-html-self-link-headlines to add an anchor-link instead of making the headline a link. [9.4.5 (9.4.5-16-g94be20-elpaplus @ /home/lockywolf/.emacs.d/elpa/org-plus-contrib-20210412/)]
  2021-05-30  6:05 ` Ihor Radchenko
@ 2021-05-30  6:48   ` Timothy
  0 siblings, 0 replies; 3+ messages in thread
From: Timothy @ 2021-05-30  6:48 UTC (permalink / raw)
  To: Ihor Radchenko; +Cc: Vladimir Nikishkin, emacs-orgmode


Ihor Radchenko <yantar92@gmail.com> writes:

> Vladimir Nikishkin <lockywolf@gmail.com> writes:
>
>> Would it be possible to, instead, add a small link, with the same href,
>> and the visible part of something short, such as (#) or (*) hear the
>> headline.
>
> This sounds useful. An example of implementation is
> https://tecosaur.github.io/emacs-config/config.html
>
> Timothy, would you be interested to prepare the patch out of your
> config?

If there's sufficient interest, I'd be happy to cook something up.
I'm not sure it's always desirable though, see:
https://tecosaur.github.io/emacs-config/config.html#header-anchors
perhaps a boolean var to control it would also be worth adding.

--
Timothy.


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-05-30  6:48 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-05-23 11:25 Bug: Add an option for org-html-self-link-headlines to add an anchor-link instead of making the headline a link. [9.4.5 (9.4.5-16-g94be20-elpaplus @ /home/lockywolf/.emacs.d/elpa/org-plus-contrib-20210412/)] Vladimir Nikishkin
2021-05-30  6:05 ` Ihor Radchenko
2021-05-30  6:48   ` Timothy

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).