Menu

#545 Copy table excerpts as ascii art for convenient inclusion in text-only docs

SQuirreL
accepted
nobody
None
5
2017-05-19
2016-09-15
No

We can copy text from query results as plain text or HTML, and with headers. What would be useful quite often is to copy it in "ascii art" form, with "+", "|", and underscores, to delimit columns and headers.

Discussion

  • David M. Karr

    David M. Karr - 2016-09-17

    Obviously, "ascii art" isn't quite what I mean here, but I think you understand the intent.

     
  • David M. Karr

    David M. Karr - 2016-09-20

    I was able to write a command-line tool using http://search.cpan.org/~lunatic/Text-ASCIITable-0.20/lib/Text/ASCIITable.pm to produce what I was looking for, but my suggestion is to have something like this built into the tool.

     
  • Gerd Wagner

    Gerd Wagner - 2016-09-24
    • status: open --> accepted
     
  • Gerd Wagner

    Gerd Wagner - 2016-09-24

    Is committed to our Git repository and will be available in future snapshots and version.

    The layout isn't exactly like in the link mentioned above but looks like SQuirreL's usual text output.
    See new entry in table's right mouse menu: Copy aligned (as in 'Results as text' tab)

     

    Last edit: Gerd Wagner 2016-09-24
  • Sumit Agarwal

    Sumit Agarwal - 2017-05-15

    I have recently been copying sql results to our internal mattermost and using markdown tables for it, it would be good if squirrel could do this directly. Which version has Copy Aligned?

     
  • Gerd Wagner

    Gerd Wagner - 2017-05-19

    Sumit,
    there's an new table right mouse menu 'Copy as markdown table' in future snapshots and versions.
    Gerd

     

Log in to post a comment.