Commit graph

87 commits

Author SHA1 Message Date
Kai Moschcau
55a96a114d Add ability to configure default options with file
# Conflicts:
#	Cargo.lock
#	Cargo.toml
#	README.md
#	src/app.rs
#	src/core.rs
#	src/display.rs
#	src/flags.rs
#	src/meta/mod.rs
#	src/sort.rs
#	tests/integration.rs
2020-10-02 10:08:37 +05:30
Allen Hsu
85bee8ba86 Use vec of function pointers over sorting closure. 2020-09-12 15:19:12 +05:30
Allen Hsu
e7b46aa291 Cache sorter on Core. 2020-09-12 15:19:12 +05:30
Allen Hsu
874d07f89d Create closure to do sorting. 2020-09-12 15:19:12 +05:30
Abin Simon
5c128780f1 fix long listing for symlinkd dirs 2020-08-29 17:13:35 +05:30
zwPapEr
faea1c0051 arg: add support for dereference 2020-08-21 23:27:12 +05:30
dvvvvvv
08133b4ebb remove redundent edits 2020-05-31 16:46:54 +05:30
dvvvvvv
3141278c65 add relative path function 2020-05-31 16:46:54 +05:30
dvvvvvv
79adfff370 remove name property from Name struct 2020-05-31 16:46:54 +05:30
zwPapEr
04129e8624 *: 🎨 add newline to each print error 2020-04-07 12:25:11 +05:30
zwPapEr
645be4a668 delete fs canonicalize for show broken softlink without error
fix https://github.com/Peltoche/lsd/issues/72
2020-04-07 12:25:11 +05:30
Pierre Peltier
87e87d87cd Do not panic if the pipes a closed before all the output is written 2020-01-07 16:40:58 +01:00
Pierre Peltier
6ca2bd948d Merge the display functions 2019-12-06 11:35:03 +05:30
Pierre Peltier
03adf997cc Remove the short/long output and use only the blocks 2019-12-06 11:35:03 +05:30
Pierre Peltier
8d9bcc3910 Avoid the meta vector copy 2019-12-06 11:35:03 +05:30
Roy Ivy III
3b5f1c0903 refactor ~ fix cargo clippy complaints 2019-12-04 11:09:11 +01:00
Sumit Sahrawat
148c78d418 Fix #275: Implement -I/--ignore-glob 2019-10-23 10:46:03 +02:00
Peltoche
a1876912a7 Remove a regression buf removing the icons when the tty is available
This bug was add with dd10a6e543
2019-07-25 15:00:57 +02:00
thammin
af2fc02a79 Should get meta by using given path.
This prevent symlinks to be resolved.
2019-07-22 11:00:09 +02:00
Philipp Mildenberger
744efce1b8 added a total-size flag, that calculates the total size of directories recursively 2019-07-17 10:27:59 +00:00
Sag0Sag0
cb1de67261 Fix platforms specific stuff 2019-06-21 16:33:59 +02:00
Sag0Sag0
79ebe268f2 Fix typo 2019-06-21 16:33:59 +02:00
Sag0Sag0
dd10a6e543 Fixed to not include icons when running on tty 2019-06-21 16:33:59 +02:00
Abin Simon
1e6b2c6e67 fix tests for flags as ref 2019-06-09 13:02:05 +02:00
Abin Simon
dd5e8733f2 enable only certain blocks using --blocks 2019-06-09 13:02:05 +02:00
Thomas Magalhaes
3cb41aff69 core: code-cleanup: cleaner handling of tree layout boolean 2019-05-29 13:54:30 +05:30
Thomas Magalhaes
a4f6b4bc18 flags: allow to mix --long and --tree
Refs: #185
Closes: #204
2019-05-29 13:54:30 +05:30
Gavin Panella
edfee423a3 Fix listing of user-given arguments. 2019-05-24 17:58:09 +02:00
Helmut Januschka
265a18bb21 * add --sizesort/-S and sort by filesize
* modify display/fetch to also show folder size (they have sizes)
2019-05-21 14:40:16 +02:00
Roy Ivy III
3a2a19fcb6 fix ANSI color for Windows 10 2019-05-21 13:24:06 +02:00
Gavin Panella
75648b79b0 Change Meta::from_path_recursive into recurse_into(&self). 2019-05-21 12:08:10 +02:00
Gavin Panella
3d8e9c1b78 Populate meta_list only with what we want to display. 2019-05-21 12:08:10 +02:00
Atanas Yankov
79416127c8 Print errors to stderr 2019-05-17 20:26:41 +02:00
H. Emre ARI
9abab3fb65 add Display enum 2019-04-01 20:42:04 +02:00
H. Emre ARI
d8eaecd30a add almost-all flag 2019-04-01 20:42:04 +02:00
H. Emre ARI
4485087759 fix crash when given file doesn't exist 2019-04-01 20:42:04 +02:00
H. Emre ARI
709c139dd4 remove if-else check from mod and almost-all flag from flags 2019-04-01 20:42:04 +02:00
H. Emre ARI
429fa52838 fix issue about --all option when displaying . and .. 2019-04-01 20:42:04 +02:00
Sebastian Zivota
e05b389986 Added Layout enum 2019-03-11 13:25:30 +01:00
Peltoche
e4882c5c99 Fix the module import paths 2019-02-16 11:34:33 +01:00
Sebastian Zivota
e1138bbec3 Refactored classic mode 2019-02-03 12:04:37 +01:00
Sebastian Zivota
1b7eec351c Added --classic flag 2019-02-03 12:04:37 +01:00
Peltoche
c4a99ed8f4
big refacto 2019-01-22 17:51:40 +01:00
Peltoche
581ff0920b Handle the errors into the core 2019-01-22 17:48:07 +01:00
Sebastian Zivota
70af39ed0a Added data to File and Dir variants of Elem, FileType enums
This obviates the need for separate variants for such things as
executableness and setuid.
2019-01-20 11:45:24 +01:00
Sebastian Zivota
390f5e4280 Renamed theme flag to icon-theme and default option to fancy 2019-01-19 11:57:27 +01:00
Sebastian Zivota
bc3e47c6d7 Added --theme option to select icon theme
Possible values are `default` and `unicode`.
2019-01-19 11:57:27 +01:00
Peltoche
092c961ea7 Do not panic in case of broken pipe 2019-01-16 15:06:01 +01:00
Peltoche
5f50be78e9 Fix the --icon=never in case of no tty 2019-01-12 12:13:29 +01:00
Max Taldykin
c74b5d619e Add a depth parameter for the -R and --tree options 2018-12-27 14:44:17 +01:00