Commit Graph
14 Commits
Author SHA1 Message Date
0rax fc2bb05f7b change block generator not to held block is they are empty + minor pep8 refacto (pylint:8.85/10) 2013-11-07 11:23:51 +01:00
0rax b264c19491 remove debug 2013-11-07 00:42:37 +01:00
0rax 4c5bd8efa5 indent block fail :x, no more triple output 2013-11-07 00:41:36 +01:00
0rax 69428a7279 Some minor modification (open inside the generator for better readability) + one bug fixe (the last block wasnt yiel by the generator) 2013-11-07 00:34:37 +01:00
0rax d85fab763b 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)
2013-11-07 00:23:54 +01:00
0rax b1212052f7 Added search function into cheat, used a grep like output, if needed it could be changed, discussion is open inside #128 issue 2013-11-06 00:36:49 +01:00
0rax b1df8fe3cc fix edit autocomplete (just dont show description of -e/--edit option and i dont know why 2013-10-11 19:15:07 +02:00
0rax 53978fa86f Add hint to use sudo when creation fail of sheet. 2013-10-11 18:56:03 +02:00
0rax fc4b047958 In response to Issue #108: Added option to copy sheet while not editable. 2013-10-11 18:32:21 +02:00
0rax b6e73539bd Added autocompletion for fish shell 2013-10-11 16:26:24 +02:00
0rax 50b04c52e1 Added 1 check for EDITOR var, if EDITOR is set to "" + added try catch to catch subprocess error like EDITOR variable pointing to a non installed editor 2013-09-20 02:27:06 +02:00
0rax 72b7af171d Split EDITOR variable to prevent error on popen while using EDITOR var with spaces 2013-09-20 02:12:48 +02:00
0rax 42642526f8 Merged to the new version 2013-09-20 02:04:14 +02:00
0rax e02e5011fc prepare to merge 2013-09-20 02:03:30 +02:00