emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* interleaving comment between rows of a table?
@ 2022-03-07 15:18 Greg Minshall
  2022-03-07 15:54 ` Juan Manuel Macías
  0 siblings, 1 reply; 3+ messages in thread
From: Greg Minshall @ 2022-03-07 15:18 UTC (permalink / raw)
  To: emacs-orgmode

hi, all.

i don't remember anybody asking about this.

i'd sometimes find it useful to be able to interleave comments -- using
(almost) whatever syntax -- between rows in an org-mode table.
(normally, this would be to provide context/rationale for the subsequent
row(s).)

something like:
----
| column name | another name   |
|-------------+----------------|
# i put this in early
| some data   | some more data |
# this helps with some issue
| a bit more  | on the way     |
----

is there any known way to do this?  some switch, or an exposed regexp?

cheers, Greg


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

* Re: interleaving comment between rows of a table?
  2022-03-07 15:18 interleaving comment between rows of a table? Greg Minshall
@ 2022-03-07 15:54 ` Juan Manuel Macías
  2022-03-07 19:13   ` Greg Minshall
  0 siblings, 1 reply; 3+ messages in thread
From: Juan Manuel Macías @ 2022-03-07 15:54 UTC (permalink / raw)
  To: Greg Minshall; +Cc: orgmode

Hi Greg,

Greg Minshall writes:

> i don't remember anybody asking about this.
>
> i'd sometimes find it useful to be able to interleave comments -- using
> (almost) whatever syntax -- between rows in an org-mode table.
> (normally, this would be to provide context/rationale for the subsequent
> row(s).)

I find the annotate package useful for inserting comments and
annotations in "difficult" places. I find annotations in the margin (as
overlays) intrusive, so I have set this variable, so that the
annotations appear only in the echo area and as a tooltip:

(setq annotate-use-echo-area t)

See this screenshot: https://i.imgur.com/koKYL0K.png

Other possible settings for annotate:

(set-face-attribute 'annotate-highlight nil :foreground "chocolate" :background nil :underline nil)

(set-face-attribute 'annotate-highlight-secondary nil :foreground "chocolate" :background nil :underline nil)

(setq annotate-file "path/to/my/annotate/file")

Best regards,

Juan Manuel 


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

* Re: interleaving comment between rows of a table?
  2022-03-07 15:54 ` Juan Manuel Macías
@ 2022-03-07 19:13   ` Greg Minshall
  0 siblings, 0 replies; 3+ messages in thread
From: Greg Minshall @ 2022-03-07 19:13 UTC (permalink / raw)
  To: Juan Manuel Macías; +Cc: orgmode

Juan Manuel,

> I find the annotate package useful for inserting comments and
> annotations in "difficult" places.

thanks -- annotate looks very applicable!

cheers, Greg


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

end of thread, other threads:[~2022-03-07 19:14 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-03-07 15:18 interleaving comment between rows of a table? Greg Minshall
2022-03-07 15:54 ` Juan Manuel Macías
2022-03-07 19:13   ` Greg Minshall

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