vit-project / vit

VIT is a lightweight, fast, curses-based front end to Taskwarrior
MIT License
492 stars 51 forks source link

Using regular expression in the commnand "/" mode of VIT #337

Open aGIToz opened 1 year ago

aGIToz commented 1 year ago

At present the command "/" mode of VIT can only handle STRING. But it would be cool if I one can use regular expressions, just like in normal Vi/Vim.

Example: in Vi, I can use /B[o|a]bo to search for the word Bobo and Babo. But in VIT it rather considers B[o|a]bo as a string.

P.S: The original motivation came, when I was not able to do a case insensitive search in command "/" mode of VIT. Any help would be appreciated here.

thehunmonkgroup commented 1 year ago

I'd consider a PR for this, no interest in working on it myself w/o sponsorship.

Guessing it would be fairly straightforward, with the possible complication of how to best handle any needed escape sequences.