alphapapa / alphapapa/mangle

Adding support for searching specifically for an option, e.g. "-i" or "--ignore-case"

Đang mở
#2 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Shell
Star
27
Fork
1
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

In man pages, I often want to search for a specific option, e.g. `-i`, but if I just search for "-i", I often don't get to that option right away. Thus, I have to type in something like `^\s*-i`, which is almost as inconvenient as just hitting "n" a bunch of times and hoping I reach the -i option sooner rather than later.

It'd be great if `mangle` allowed a convenient way to indicate searching for just an option.

I propose something like `mangle grep opt -i`, where the "opt" is a special "pattern" that turns the "-i" into `'^ *-i[, ]`.

I seem to have gotten a prototype working. See: https://github.com/Flurrywinde/mangle/commit/8050fc942e567542ff1ba4d0de546378af17487f

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.