summaryrefslogtreecommitdiff
path: root/cmd2/table_creator.py
Commit message (Collapse)AuthorAgeFilesLines
* Reduced amount of style characters carried over from previous lines when ↵Kevin Van Brunt2022-02-221-10/+12
| | | | | | | aligning text. Also reduced amount of style characters appended to truncated text. These changes were made to reduce memory usage in certain use cases of tables (e.g. nested colored tables).
* Added clearer exception handling to BorderedTable and SimpleTableKevin Van Brunt2021-11-241-1/+9
|
* Updated docstring2.3.1Kevin Van Brunt2021-11-181-2/+3
|
* ArgparseCompleter now sorts CompletionItems created with numerical values as ↵Kevin Van Brunt2021-11-181-20/+21
| | | | | | | | | numbers. Completion hint tables now right-align the left column if the hints have a numerical type. Fixed issue introduced in 2.3.0 with AlternatingTable, BorderedTable, and SimpleTable that caused header alignment settings to be overridden by data alignment settings.
* Added ability to set border background color on BorderTables and ↵Kevin Van Brunt2021-11-101-37/+46
| | | | AlternatingTables
* Updated table example.Kevin Van Brunt2021-10-261-17/+17
| | | | | | Renamed Column settings: override_header_style -> style_header_text override_data_style -> style_data_text
* Added ability to colorize all aspects of SimpleTablesKevin Van Brunt2021-10-251-15/+74
|
* Added ability to colorize all aspects of BorderedTables and AlternatingTables.Kevin Van Brunt2021-10-191-64/+142
| | | | Refactored utils.align_text() to print less fill_char style characters.
* Added support for 8-bit/256-colors with the cmd2.EightBitFg and ↵Kevin Van Brunt2021-10-181-3/+5
| | | | | | | | | | | | | | cmd2.EightBitBg classes. Added support for 24-bit/RGB colors with the cmd2.RgbFg and cmd2.RgbBg classes. Removed dependency on colorama. Deprecated cmd2.fg. Use cmd2.Fg instead. Deprecated cmd2.bg. Use cmd2.Bg instead. Changed type of ansi.allow_style from a string to an ansi.AllowStyle Enum class. Fixed bug where using choices on a Settable didn't verify that a valid choice had been entered.
* Added settings to Column class which prevent a table from overriding ↵Kevin Van Brunt2021-10-131-7/+32
| | | | | | | | | | existing styles in header and/or data text. These were added to support nesting an AlternatingTable within an AlternatingTable, but other custom table classes can also use these settings. AlternatingTable no longer applies background color to outer borders. This was done to improve appearance since the background color extended beyond the borders of the table.
* set command output now uses SimpleTable.Kevin Van Brunt2021-08-191-1/+4
| | | | | | | Tabled tab completion now includes divider row. Tab completion results for aliases, macros, and Settables wrap long fields. SimpleTable now accepts blank for the divider character. It is identical to passing None. Removed --verbose flag from set command so the descriptions always show.
* Updated _print_topics() to use SimpleTableKevin Van Brunt2021-08-111-12/+12
|
* Made the amount of space between columns in a SimpleTable configurablecolumn_spacingKevin Van Brunt2021-04-211-11/+19
|
* Updated main code to use f-stringsKevin Van Brunt2021-04-131-5/+5
|
* Add mypy validation actionEric Lin2021-04-061-1/+1
|
* And that's the last of it. Passes mypy.Eric Lin2021-04-061-9/+13
|
* Added support for ANSI styles and newlines in tab completion resultsKevin Van Brunt2021-03-021-4/+2
|
* Moved empty line check in table creatorKevin Van Brunt2021-03-021-4/+5
|
* Fixed issue where TableCreator was tossing blank last linestable_newlineKevin Van Brunt2021-03-011-0/+4
|
* Deprecate Python 3.5Todd Leonhardt2021-02-201-20/+1
|
* Add in isort changesTodd Leonhardt2021-01-311-4/+12
|
* Add black for automatic code formatTodd Leonhardt2021-01-311-43/+66
|
* Added more validation to TableCreatorKevin Van Brunt2021-01-291-0/+4
|
* Fixed width calculation when table column headers had tabsKevin Van Brunt2021-01-281-17/+27
|
* Changed isort to force wrapping of imports to reduce merge conflicts from ↵Eric Lin2021-01-221-7/+23
| | | | minor import changes.
* Adding explicit python 3.5.3 test to nox, travis.Eric Lin2020-08-101-1/+10
| | | | Copied 3.5.4 definition of typing.Deque
* Added 'no cover' for code block which cannot be tested in our unit testsKevin Van Brunt2020-08-031-1/+1
|
* Added PyCharm warning suppressionsTodd Leonhardt2020-07-131-0/+2
|
* small simplificationTodd Leonhardt2020-07-131-2/+1
|
* slight cleanupTodd Leonhardt2020-07-131-2/+2
|
* Address fact that typing.Deque wasn't defined prior to 3.5.4Todd Leonhardt2020-07-131-1/+9
|
* Simplied table divider code for ease of readingKevin Van Brunt2020-06-011-3/+5
|
* Changed how SimpleTable creates divider when divider_char is wide. It no ↵Kevin Van Brunt2020-06-011-29/+43
| | | | longer stretches the width of the table.
* Changed SimpleTable.base_width() to a class method and added equivalent ↵Kevin Van Brunt2020-05-281-10/+30
| | | | method to BorderedTable.
* Updated argparse_completer to use TableCreator for the hint tableKevin Van Brunt2020-05-281-11/+51
|
* Updating documentation for table creationKevin Van Brunt2020-04-221-3/+5
|
* Updated docsKevin Van Brunt2020-04-221-3/+5
|
* Updated docstrings to work with sphinxKevin Van Brunt2020-04-201-10/+12
|
* Added configurable padding to BorderedTable/AlternatingTableKevin Van Brunt2020-04-191-53/+104
| | | | Updated comments
* Initial commit of table creation APIKevin Van Brunt2020-04-091-0/+748