You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+16-62Lines changed: 16 additions & 62 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -24,36 +24,33 @@ The following commands are available for use with Fmap:
24
24
25
25
```bash
26
26
# Scan Commands
27
-
fmap # Scans from the current directory
28
-
fmap -s # Scans with default options
29
-
fmap -s -e -fs -ds -fc # Scans with optional features: show file endings, file sizes, directory sizes, and file counts in directories
30
-
fmap -sp "path"# Scans from a custom relative path
27
+
fmap scan # Scans the current directory with options for file endings, sizes, and counts
28
+
fmap scan-path --path "path"# Scans a specific path with options for file endings, sizes, and counts
31
29
32
30
# Configuration Commands
33
-
fmap -c# Creates/reset the configuration file
31
+
fmap config# Creates or resets the configuration file
34
32
35
33
# Ignored Directories and Files Commands
36
-
fmap -add -dir "directory"# Adds a directory to the ignored list
37
-
fmap -add -file "filename"# Adds a file to the ignored list
38
-
fmap -rmv -dir "directory"# Removes a directory from the ignored list
39
-
fmap -rmv -file "filename"# Removes a file from the ignored list
40
-
fmap -ls -dir # Lists all ignored directories
41
-
fmap -ls -file # Lists all ignored files
42
-
43
-
# Other Commands
44
-
fmap -i # Adds the binary to the PATH environment variable
45
-
fmap -v # Prints the version
46
-
fmap -h # Prints the help
34
+
fmap add --type "file/dir" --name "name"# Adds a file or directory to the ignored list
35
+
fmap remove --type "file/dir" --name "name"# Removes a file or directory from the ignored list
36
+
fmap list --type "file/dir"# Lists all ignored files or directories
37
+
38
+
# Installation Command
39
+
fmap install # Adds the binary to the PATH environment variable
40
+
41
+
# Version and Help Commands
42
+
fmap version # Prints the version
43
+
fmap help# Prints the help
47
44
```
48
45
49
-
**Note:** Replace "path," "directory," and "filename" with your desired paths, directories, and filenames. You can customize the scan options with flags such as `-e` for file endings, `-fs` for filesizes, `-ds` for directorysizes, and `-fc` for file counts in directories.
46
+
**Note:** Replace "path," "directory," and "filename" with your desired paths, directories, and filenames. Customize the scan options with flags such as `--endings`, `--file-sizes`, `--directory-sizes`, and `--file-counts-in-directories` for detailed information.
50
47
51
48
## Example Output
52
49
53
50
### Command
54
51
55
52
```bash
56
-
fmap scan -e -fc
53
+
fmap scan --endings --file-counts-in-directories
57
54
```
58
55
59
56
### Output
@@ -80,50 +77,7 @@ You can try out Fmap online at [https://foldermap.cqb13.dev](https://foldermap.c
80
77
81
78
## Installation
82
79
83
-
### macOS
84
-
85
-
1. Download the latest macOS release from [GitHub](https://github.com/cqb13/fmap/releases) or build from source
86
-
2. Extract the zip file
87
-
3. Open the folder with the extracted file in your terminal
88
-
4. Run the following command:
89
-
90
-
```bash
91
-
./fmap -i
92
-
```
93
-
94
-
5. restart your terminal and run the following command:
95
-
96
-
```bash
97
-
fmap -v
98
-
```
99
-
100
-
6. If the version is printed, you have successfully installed Fmap, if not, please submit an issue on [GitHub](https://github.com/cqb13/fmap/issues), with the error message.
101
-
102
-
### Windows
103
-
104
-
1. Download the latest windows release from [GitHub](https://github.com/cqb13/fmap/releases) or build from source
105
-
2. Extract the zip file
106
-
3. Open the folder with the extracted file in your terminal (you must use administrator privileges)
107
-
4. Run the following command:
108
-
109
-
```bash
110
-
./fmap.exe -i
111
-
```
112
-
113
-
5. restart your computer
114
-
6. Open your terminal and run the following command:
115
-
116
-
```bash
117
-
fmap -v
118
-
```
119
-
120
-
7. If the version is printed, you have successfully installed Fmap, if not, please submit an issue on [GitHub](https://github.com/cqb13/fmap/issues), with the error message.
121
-
122
-
### Alternative Installation
123
-
124
-
1. Clone the repository: `git clone https://github.com/cqb13/fmap.git`
125
-
2. Navigate to the project directory: `cd fmap`
126
-
3. Build and install with Cargo: `cargo install --path .`
80
+
Refer to the "Installation" section in the original markdown for platform-specific installation instructions.
0 commit comments