Show the formula of the table cell at point in eldoc? #272
Replies: 1 comment
-
What does the Elisp Recipe do?RecipeThis recipe does the following
Screenshots of recipe in actionDemo-1: What happens when
|
Beta Was this translation helpful? Give feedback.
-
See Emacs Stackexchange:: In org-mode, can I show the formula of the table cell at point in eldoc?
What does the Elisp Recipe do?
Recipe
This recipe does the following
mouse-1
on a table cell highlight the table, it also prints table cell info aseldoc
stringWhen on a table, if use
<tab>
,<backtab>
(translated fromS-<iso-lefttab>
),C-f
,C-b
,C-n
,C-p
to navigate around the table, it prints the table cell info aseldoc
string. (In this case, no highlighting of dependent cell would happen.)Screenshots of recipe in action
Demo-1: What happens when
mouse-1
on a Table cell(Note that this table is a fairly complex, and names some fields, and columns)
Demo-2: What happens when
mouse-1
on a different TableOrg
file used for DemoElisp Recipe
This recipe does the following
mouse-1
on a table cell highlight the table, it also prints table cell info aseldoc
stringWhen on a table, if use
<tab>
,<backtab>
(translated fromS-<iso-lefttab>
),C-f
,C-b
,C-n
,C-p
to navigate around the table, it prints the table cell info aseldoc
string. (In this case, no highlighting of dependent cell would happen.)-----------
To get this
mouse-1
orleft click
shows table cell info at pointdo this
To get this
Display Table Cell info as
eldoc
stringon this
this seems like a good starting point
If
org table
is a too big to analyze, you may have to build the docstring in a callback.For quick results, the above snippet works reasonably well.
The snippet gives the contour of possible solution and is NOT production ready. Right now, it doesn't overlays used for highlighting etc.
TODO: Destructure the
message
emitted by stockorg-table-field-info
withpcase
rx
pattern may be.To get this
Highight dependent cells of a table with
M-x my-org-table-highlight-dependent-cells
on this
do this
Beta Was this translation helpful? Give feedback.
All reactions