wayneyaoo / alfred-cheat

Manage your self-defined cheat sheets & knowledge base in Alfred
MIT License
138 stars 11 forks source link

Escaping option for "#"? #21

Open chrisgrieser opened 3 years ago

chrisgrieser commented 3 years ago

I have some cases, where I actually want to have # in the subtitle. However, they never appear, likely cause the script thinks its another comment. '#' or \#also did not work for me. Is there a proper way for espacing? If not, I formally request one :) thanks!

carl-zang commented 2 years ago

For those who also have the same need, I have a workaround. Open ./lib/parser.py line 55: comment=comment.replace("#","").replace("\n",". ").strip() Instead of replacing all # characters, use comment=comment.replace("#","", 1).replace("\n",". ").strip() to replace only the first # on each line