forked from kworkflow/kworkflow
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
src: explore: add --show-context flag
The idea was to expand kw explore to show extra context after matching a string. This has been achieved by adding a new -C | --show-context flag which accepts an integer argument. The default value for this arg will be 3. The functionality is implemented by using native features of grep and git grep commands, to avoid adding new dependencies. tests: unit: explore_test: Added test cases for --show-context src: bash_autocomplete: Updated bash completions for kw explore src: _kw: updated zsh completions for kw explore documentation: man: features: kw-explore: updated man page and added examples for kw explore Closes: kworkflow#1052 Signed-off-by: Sahil Sagwekar <[email protected]> Reviewed-by: Rodrigo Siqueira <[email protected]> Signed-off-by: Rodrigo Siqueira <[email protected]>
- Loading branch information
1 parent
328449c
commit 1f050b5
Showing
5 changed files
with
139 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters