emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* (re-)introducing: orgtbl-query (nee org-query)
@ 2019-10-15 22:40 Greg Minshall
  2019-10-16  0:52 ` Adam Porter
  0 siblings, 1 reply; 2+ messages in thread
From: Greg Minshall @ 2019-10-15 22:40 UTC (permalink / raw)
  To: emacs-orgmode

apologies for the extra noise.

i've renamed (and moved) my small utility, now known as orgtbl-query,
that allows one to query, from the shell (command line), the contents of
an org-mode table in a file.  orgtbl-query is now located at:
----
https://gitlab.com/minshall/orqtbl-query
----
part of it has also been re-written in C for performance reasons (a
makefile is included); apologies for making it that much harder to
install.  (the awk part remains.)

it works for my use cases (obviously), but i'm sure it will break, or be
feature-deficient, for those of others.  i'd be happy to try to fix
bugs.  below are the first N lines of help output.

cheers, Greg

----
usage: orgtbl-query -h|--help
     : orgtbl-query [-f|--field column] [--complement] [--regexp]
                                        [--ignore-case] file [[table:]column] key
     : orgtbl-query -t|--tables file
     : orgtbl-query -c|--columns file [table[:]]
     : orgtbl-query -k|--keys file [[table:]column]
----
the first form prints this help message

the second form searches for KEY in FILE, TABLE, COLUMN, and prints out
any matching lines (or a single column).  tables are named, as in emacs
org-mode, "#+name: TABLE", starting in column one

the third form lists all the tables in FILE

the fourth form lists all the columns in a single TABLE in FILE

the fifth form lists the keys in column COLUMN of the table TABLE in FILE

...

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

* Re: (re-)introducing: orgtbl-query (nee org-query)
  2019-10-15 22:40 (re-)introducing: orgtbl-query (nee org-query) Greg Minshall
@ 2019-10-16  0:52 ` Adam Porter
  0 siblings, 0 replies; 2+ messages in thread
From: Adam Porter @ 2019-10-16  0:52 UTC (permalink / raw)
  To: emacs-orgmode

Hi Greg,

That's very cool!  Thanks for sharing it.

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

end of thread, other threads:[~2019-10-16  0:55 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-10-15 22:40 (re-)introducing: orgtbl-query (nee org-query) Greg Minshall
2019-10-16  0:52 ` Adam Porter

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