Timeline for Can I align all the tables in an org file from the command line?
Current License: CC BY-SA 3.0
8 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Sep 18, 2015 at 17:57 | comment | added | Joafigue | Hi Brian, To apply the script to all the files, you can use your favorite shell tricks; The easiest way I think is to use glob expansion If the script is named "align_tables.sh" you can use $ align_tables.sh dir/*.org | |
| Sep 17, 2015 at 6:53 | comment | added | Brian Fitzpatrick | @Joafigue How would I apply this script to all the org files in a directory? | |
| Sep 15, 2015 at 6:54 | comment | added | Brian Fitzpatrick | Ahh.. figured it out. Replacing 'org-table-align with 'org-table-iterate does the trick. | |
| Sep 15, 2015 at 6:14 | comment | added | Brian Fitzpatrick | @Joafigue I wonder if this script could be altered to also update all the formulas in the tables... Would that be an easy alteration or should I ask a separate question? | |
| Sep 14, 2015 at 18:46 | vote | accept | Brian Fitzpatrick | ||
| Sep 14, 2015 at 14:46 | comment | added | Joafigue | To my understanding OP has the files with unaligned tables, and wants to align them as Org would do when opening a file. I tested the script and it did that PLease pay attention to the "org-table-map" line | |
| Sep 14, 2015 at 14:43 | comment | added | Emacs User | How does that align tables as op wants? | |
| Sep 14, 2015 at 14:27 | history | answered | Joafigue | CC BY-SA 3.0 |