Skip to content

Commit

Permalink
Add "w" in --ack mode, and some doc fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
lizmat committed Feb 17, 2025
1 parent ba4f8db commit 9f5fbce
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion doc/App-Rak.rakudoc
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ arguments will be honoured.
=head3 §string

If the pattern starts with C<§>, then it indicates that the string should
occur as a word (with word-boundaris on both ends) in the item. Basically a
occur as a word (with word-boundaries on both ends) in the item. Basically a
shortcut to specifying C<--type=words string>. Any C<--smartcase>,
C<--smartmark>, C<--ignorecase> or C<--ignoremark> arguments will be honoured.

Expand Down
4 changes: 3 additions & 1 deletion lib/App/Rak.rakumod
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,8 @@ my constant %falsies =
unrestricted => 'dir',
;

# The JSON config to map "ack" arguments to "rak" arguments as closely as possible
# The JSON config to map "ack" arguments to "rak" arguments as closely as
# possible
my constant %ack-interface-config =
"1" => (:only-first,),
"A" => (:after-context<!>,),
Expand Down Expand Up @@ -141,6 +142,7 @@ my constant %ack-interface-config =
"type" => (:extensions<!>,),
"TYPE" => (:extensions<!>,),
"v" => (:invert-match,),
"w" => (:type<words>,),
"with-filename" => (:show-filename,),
"x" => (:files-from<->,),
;
Expand Down

0 comments on commit 9f5fbce

Please sign in to comment.