Commit graph

240 commits

Author SHA1 Message Date
Dock
51aea57a6a Add multiple path support (#182)
* Adding support for multiple paths. (panic)

- Started adding multiple file support
- fd panics with multiple files right now

* Moved the ctrlc handler to main.

- Moved the ctrlc handler to main so we can search multiple files

* Tests now allow custom directory setup

- TestEnv::new() now takes two arguments, the directories to create and
the files to create inside those directories.

* rust-fmt changes

* rust-fmt changes

* Moving code around, no need to do everything in one big loop

- PathDisplay was never actually used for anything, removed it during refactor of main
- Removed redundant logic for absolute paths
- Moved code placed needlessly inside a loop in the last commit outside of that loop.

* Moving code around, no need to do everything in one big loop

- PathDisplay was never actually used for anything, removed it during refactor of main
- Removed redundant logic for absolute paths
- Moved code placed needlessly inside a loop in the last commit outside of that loop.

* Removed commented code in testenv

* Refactored walk::scan to accept the path buffer vector. Using the ParallelWalker allows for multithreaded searching of multiple directories

* Moved ctrlc handler back into walker, it is only called once from main now.

* Moved the colored output check back to it's original place

* Removing shell-escape, not sure how it got added...

* Added test for `fd 'a.foo' test1` to show that a.foo is only found in the test1 and not the test2 direcotry

* Removing side effect from walk::scan, `dir_vec` is no longer a mutable reference and an iterator is being used instead.

* Running rustfmt to format code correctly
2017-12-06 14:52:23 -08:00
Dock
c0bfc65d88 Handle terminal signals (#128)
fixes #87
2017-11-22 23:05:09 +01:00
sharkdp
9be32fa6a7 Bump version number 2017-11-15 23:39:55 +01:00
Matthias Reitinger
18709b1ede Remove shell with --exec 2017-11-15 23:18:36 +01:00
Adit Cahya Ramadhan
673392045f Check minimal rustc version on the build process 2017-11-13 19:27:51 +01:00
sharkdp
c022528f54 Bump version for crates.io
[ci skip]
2017-10-26 22:24:07 +02:00
sharkdp
b3f1e1844d Move 'win' crate back into local module
This is necessary to publish on crates.io
2017-10-26 21:59:12 +02:00
J.W
d702d849ea Test --exec on Unix 2017-10-26 20:56:32 +02:00
J.W
6b232a82ee Fix --exec 2017-10-26 20:56:32 +02:00
sharkdp
e9cf8af911 Updates and preparations for v5.0 2017-10-22 12:10:51 +02:00
Antti Keränen
701b8f209b Relicense under MIT/Apache-2.0 2017-10-22 10:36:42 +02:00
J.W
570ea78d24 jakwings/fd@a44e677 -> subdirectory "win" 2017-10-21 00:33:49 +02:00
J.W
ce73c086b6 Auto disable colored output for unsupported Windows shells 2017-10-21 00:33:49 +02:00
Michael Aaron Murphy
ad1b4f3b2b Optimize grouping for *nix archs 2017-10-14 21:45:31 -04:00
Michael Aaron Murphy
137fe2e697 Merge Conflicts 2017-10-14 12:35:16 -04:00
Michael Aaron Murphy
4a5a5faf4d Implement --exec feature
Closes #84
2017-10-14 12:24:17 -04:00
sharkdp
be2238ddf4 Fix Cargo warnings 2017-10-14 12:04:57 +02:00
Matthias Reitinger
b441528067 Improve smart case to only consider literal uppercase chars (#103) 2017-10-14 11:03:21 +02:00
sharkdp
2403ac350a cargo update 2017-10-05 00:01:56 +02:00
Matthias Reitinger
6f22957cdc Re-write integration tests in Rust (#67)
* Rewrite integration tests in Rust.
* Improve failure output for integration tests.
* Move TestEnv to separate module.
* Remove old integration tests script.
* Re-add integration test for subdirectory.
2017-10-04 23:19:30 +02:00
Florian Hofmair
396b9baaa5 Use clap to generate shell completions 2017-10-04 18:00:25 +02:00
sharkdp
8073635177 Add badges 2017-09-27 21:47:41 +02:00
sharkdp
c1b8d1eae1 Minor style changes 2017-09-17 09:37:39 +02:00
sharkdp
916b55fae1 Update Cargo.toml, see #42 2017-09-09 19:15:35 +02:00
sharkdp
4884c23283 Update development instructions 2017-09-09 19:04:17 +02:00
sharkdp
b4c8a8ba56 Use N-1 search threads, where N = # cores 2017-09-09 16:13:27 +02:00
sharkdp
c55b255a3e Update dependencies 2017-09-09 15:25:48 +02:00
sharkdp
dfd7433347 Bump to v2.0.0 2017-06-13 20:29:29 +02:00
sharkdp
087e709acd Use clap, change --sensitive to --case-sensitive
see #33
2017-06-11 14:25:58 +02:00
sharkdp
1adcf76f1b Use atty instead of isatty 2017-06-10 17:30:48 +02:00
sharkdp
c8d4ec89a3 Use references instead of values 2017-06-09 14:39:57 +02:00
sharkdp
4d950ae97c Highlight executable files 2017-06-05 21:51:10 +02:00
sharkdp
0f5ede48d5 Restructure according to Cargo doc 2017-06-05 11:56:39 +02:00
sharkdp
c6209471a2 Re-structure code, add unit tests, use LS_COLORS 2017-06-01 22:46:15 +02:00
sharkdp
ae12e00533 Switch to 'ignore', closes #4 2017-05-15 22:38:34 +02:00
sharkdp
9bf008b319 Bump version 2017-05-14 22:16:10 +02:00
sharkdp
9aa4f0a124 Update help message 2017-05-13 10:04:26 +02:00
sharkdp
b4a252a391 Detect interactive terminal, closes #11 2017-05-12 22:50:52 +02:00
sharkdp
fba5e02c25 Colored output, closes #8 2017-05-12 13:02:20 +02:00
sharkdp
12bfee0bec Re-write in rust 2017-05-12 11:50:54 +02:00