summaryrefslogtreecommitdiff
path: root/cmd2/history.py
Commit message (Collapse)AuthorAgeFilesLines
* Changed isort to force wrapping of imports to reduce merge conflicts from ↵Eric Lin2021-01-221-3/+10
| | | | minor import changes.
* Added info on semantic versioning and branching strategy to CONTRIBUTING.mdTodd Leonhardt2020-04-241-1/+0
| | | | | | | Also: - Added isort to Pipenv dev - Added setup.cfg to make it easy to run flake8, doc8, and isort directly from the command line without using invoke - Ran isort to sort includes
* Add history api documentationkotfu2020-02-201-16/+26
|
* Took out rstrip() calls that are no longer neeededKevin Van Brunt2019-12-101-2/+2
|
* Fixed bug where was sometimes showing raw and expanded commands when they ↵Kevin Van Brunt2019-07-171-3/+6
| | | | weren't different
* Removed unneeded (optional) text from docstringsKevin Van Brunt2019-06-261-3/+3
|
* Fix verbose history tests and behaviorTodd Leonhardt2019-06-241-1/+1
|
* Initial Commit for Issue 698xNinjaKittyx2019-06-241-2/+2
|
* Added commentKevin Van Brunt2019-06-141-0/+4
|
* Fixed bug where multiline commands were always being expanded in history output.Kevin Van Brunt2019-06-141-11/+12
| | | | Since the intention was to display their raw versions on 1 line in non-verbose mode, the code was rewritten to do so.
* Fix history display issuesTodd Leonhardt2019-06-131-2/+2
| | | | | | | | | | | Issues were two fold: - HistoryItem statement.raw was getting mangled for multiline commands due to macro-related changes in _input_line_to_statement() - HistoryItem pretty printing wasn't using rstrip() anymore in verbose mode I added a couple unit tests in the process of getting here. But we should add some explicit unit tests of _input_line_to_statement() for cases like: - basic single-line command - macro single-line command - multiline command
* Minor rewording of a couple commentsTodd Leonhardt2019-05-271-2/+2
|
* Add the -a/--all flag to the history command for showing all commands ↵Todd Leonhardt2019-05-271-11/+35
| | | | | | | | | | including those persisted from previous sessions Also: - History class has been modified to keep track of the session start index - History class span(), str_search(), and regex_search() methods now take an optional 2nd boolean parameter `include_persisted` which determines whether or not commands persisted from previous sessions should be included by default - If a start index is manually specified, then it automatically includes the full search - Updates unit tests
* Refactored implementation of HistoryItem.__str__ and added an explicit ↵Todd Leonhardt2019-05-251-4/+1
| | | | HistoryItem unit test
* Fixed flake errorkotfu2019-05-251-0/+1
|
* Resolve PR feedbackkotfu2019-05-251-24/+25
|
* Fix flake8 errorskotfu2019-05-241-3/+5
|
* Refactor HistoryItem to not subclass strkotfu2019-05-241-24/+28
|
* Initializing history now detects plaintext or pickle formatkotfu2019-05-241-0/+14
|
* Cleaned up some PyCharm warningsTodd Leonhardt2019-03-131-2/+2
|
* Negative ending history indices include the referenced command, instead of ↵kotfu2019-03-111-9/+24
| | | | excluding it
* Allow both history indices to be negativekotfu2019-03-101-3/+1
|
* Clean up history commandkotfu2019-03-091-80/+103
|
* Reworked get() on History classkotfu2019-03-091-34/+57
|
* Potential fixes for outstanding multi-line issues in history commandTodd Leonhardt2019-03-031-2/+2
|
* expanded history searches with string or regex for #545kotfu2019-02-161-2/+3
| | | | history -v with a string or regex search now searches both the entered command as well as the expanded command
* Added -x option to history command for #545kotfu2019-02-091-6/+21
|
* Extract history classes and test into their own fileskotfu2019-02-091-0/+151