Closed NijeboerFrank closed 1 year ago
Thank you for these improvements. They sound like good ideas. Unfortunately they do not seem to work. I just tested them in fish. For the continue
subcommand I do not get a completion at all and for the description the completion seems to be broken. After I selected one of the entries It contains all three columns: the number, the description and the project.
I am not really a fish expert so I am not sure what may the error here, but could it perhaps be a problem with the calculation of the string lengths?
It indeed had something to do with the calculation of the lengths. I have tested it and also ran into issues if I created large descriptions. I pushed a fix for it.
With regards to the continue
completions: You need to type bartib continue
and after pressing TAB
you should be getting some options.
The completion for the description works fine now.
The completion for continue
still broke in case bartib last -n 100
yielded more than 10 results. The problem was in the regexes in line 39 which did not account for index numbers with several digits. I fixed that.
Hi, I've updated some of the completions from my last PR:
cat
anymore (some users may have overwritten or aliased thecat
command, breaking the old version). Instead the "description search" now uses thebartib last
command to find the descriptionscontinue
command now shows to which project and description the number belongs (see the attached image)