ck
ck copied to clipboard
Prompt disappear when writing tags
The prompt disappear when writing tags
To Reproduce Steps to reproduce the behavior:
- ck a https://eprint.iacr.org/2020/248.pdf
- write many tags to fill the current line
- the prompt disappears
Expected behavior The prompt should stay.
Screenshots
Desktop (please complete the following information):
- OS: Linux
- Browser: None
- Version: master
Hm, I don't have the problem: I tried specifying a lot of tags with autocomplete, and the prompt remained. (Assuming by "prompt" you mean the "Please enter tag(s) for 'APY20' (use Tab to autocomplete):" prompt.)
But I don't get tag suggestions on my platform because pdfgrep seems to bork with my hierarchical tags.
Qs:
- Can you try commenting out the pdfgrep suggestions and see if it still happens?
- Also, can you try reproducing this on OS X?
Hi, I've tried it.
- It still happens
- It also happens on OS X.

Might this have something to do with all those "\b" characters that you pass to pdfgrep? Those are "backspace" characters so they might delete output. I'm not sure how they end up being sent to the console. Perhaps something to do with how pdfgrep is called.
Can you comment out all of the pdfgrep-related stuff and try again?
For example, comment out line 614:
matches = subprocess.check_output("pdfgrep '%s' %s" % (tag_extended_regex, ck_to_pdf(ck_bib_dir, citation_key)), shell=True).decode()
If that works, then uncomment and try removing shell=True
.
Alex, I changed how pdfgrep
is called in https://github.com/alinush/ck/commit/3dc8b7746be26ccd0d55d4ac2ac8d6446346f7c3.
Maybe this fixes your issue? Can you check?