mirror of
https://github.com/Erreur32/cheat.git
synced 2024-09-07 12:01:35 +02:00
* 'master' of https://github.com/0rax/cheat: change block generator not to held block is they are empty + minor pep8 refacto (pylint:8.85/10) remove debug indent block fail :x, no more triple output Some minor modification (open inside the generator for better readability) + one bug fixe (the last block wasnt yiel by the generator) Following #128 talk about how output should be made for search. Just changed the way on how the search function output the result, no more ala grep output. Cheatsheets are now parsed [by CheatSheets.__parse_cheat_command_block(self, cheat_fp)] into block (separated by newline), i have seen that all block in cheatsheets are delimited by a blank line, so instead of parsing from first consecutive # to last consecutive command, an output that is not used by all sheets (reference to "7z" cheatfile). And so the block are parsed by begin of the document to blanck line to end of the document. Finally the output is made by indenting the block content by 4 spaces + the title of the sheet on the top. This is a way to handle subcommands in my mind (search "git commit" and you now have all what you want) Added search function into cheat, used a grep like output, if needed it could be changed, discussion is open inside #128 issue fix edit autocomplete (just dont show description of -e/--edit option and i dont know why Add hint to use sudo when creation fail of sheet. In response to Issue #108: Added option to copy sheet while not editable. Added autocompletion for fish shell Conflicts: setup.py |
||
---|---|---|
.. | ||
_cheat.zsh | ||
cheat.bash | ||
cheat.fish |