bat
bat copied to clipboard
Feature request to have pattern search option like VIM
Hi Team,
Can we have pattern search feature in Bat like we have in vim where we use :g/pattern to match the keyword and it list the all lines match to search pattern then we use vim jump feature to jump on the matched line.
bat uses less by default. To search for pattern, type /pattern<RET>. Then n and N to navigate down and up among the search results.
batuseslessby default. To search forpattern, type/pattern<RET>. ThennandNto navigate down and up.
First thanks for prompt response. yes i am aware but i am looking something like :g/pattern where it list all the matched line of searched keyword. thought to check if this possible with bat tool
It doesn't seem like less supports that, unfortunately.
It doesn't seem like
lesssupports that, unfortunately.
Okay got it. So means not possible
@ciscohack If you can find a pager that allows you to search with that syntax, you can make it work. I did a quick search and stumbled upon this, didn't get to try it though: https://github.com/rkitover/vimpager
@ciscohack If you can find a pager that allows you to search with that syntax, you can make it work. I did a quick search and stumbled upon this, didn't get to try it though: https://github.com/rkitover/vimpager
Thanks my friend for time and link. But this only work under vim.. will see anyway