mirror of
https://github.com/sharkdp/fd.git
synced 2026-09-01 04:28:07 +08:00
add example to man page and correct test comment
This commit is contained in:
@@ -405,5 +405,8 @@ $ fd -e py
|
||||
.TP
|
||||
.RI "Open all search results with vim:"
|
||||
$ fd pattern -X vim
|
||||
.TP
|
||||
.RI "Show ./ prefix in results by specifying search path:"
|
||||
$ fd pattern ./
|
||||
.SH SEE ALSO
|
||||
.BR find (1)
|
||||
|
||||
+1
-1
@@ -1902,7 +1902,7 @@ fn test_error_if_hidden_not_set_and_pattern_starts_with_dot() {
|
||||
te.assert_output(&[".gitignore"], "");
|
||||
}
|
||||
|
||||
/// Show "./" prefix if the --no-strip flag is provided
|
||||
/// Show "./" prefix in results if a search path is provided
|
||||
#[test]
|
||||
fn test_no_strip() {
|
||||
let te = TestEnv::new(DEFAULT_DIRS, DEFAULT_FILES);
|
||||
|
||||
Reference in New Issue
Block a user