ftreeview 0.1.1 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +17 -17
- package/dist/cli.js +311 -153
- package/package.json +2 -2
- package/src/App.jsx +28 -12
- package/src/cli.js +10 -10
- package/src/components/StatusBar.jsx +2 -2
- package/src/hooks/useChangedFiles.js +50 -27
- package/src/hooks/useGitStatus.js +47 -0
- package/src/hooks/useIgnore.js +139 -182
- package/src/hooks/useNavigation.js +12 -4
- package/src/hooks/useTree.js +178 -61
- package/src/hooks/useWatcher.js +11 -2
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
#
|
|
1
|
+
# ftreeview
|
|
2
2
|
|
|
3
3
|
A lightweight, interactive CLI file explorer with live monitoring and git awareness.
|
|
4
4
|
|
|
@@ -28,13 +28,13 @@ npm install -g ftreeview
|
|
|
28
28
|
Then run from anywhere:
|
|
29
29
|
|
|
30
30
|
```bash
|
|
31
|
-
|
|
31
|
+
ftreeview
|
|
32
32
|
```
|
|
33
33
|
|
|
34
34
|
### npx (No Install Required)
|
|
35
35
|
|
|
36
36
|
```bash
|
|
37
|
-
npx
|
|
37
|
+
npx ftreeview
|
|
38
38
|
```
|
|
39
39
|
|
|
40
40
|
### Local Development
|
|
@@ -50,7 +50,7 @@ node dist/cli.js
|
|
|
50
50
|
## Usage
|
|
51
51
|
|
|
52
52
|
```bash
|
|
53
|
-
|
|
53
|
+
ftreeview [path] [options]
|
|
54
54
|
```
|
|
55
55
|
|
|
56
56
|
### Arguments
|
|
@@ -75,25 +75,25 @@ ftree [path] [options]
|
|
|
75
75
|
|
|
76
76
|
```bash
|
|
77
77
|
# Explore current directory
|
|
78
|
-
|
|
78
|
+
ftreeview
|
|
79
79
|
|
|
80
80
|
# Explore specific directory
|
|
81
|
-
|
|
81
|
+
ftreeview ~/projects
|
|
82
82
|
|
|
83
83
|
# Explore with git disabled
|
|
84
|
-
|
|
84
|
+
ftreeview --no-git
|
|
85
85
|
|
|
86
86
|
# Explore without icons (ASCII mode)
|
|
87
|
-
|
|
87
|
+
ftreeview --no-icons
|
|
88
88
|
|
|
89
89
|
# Use Nerd Font icons (requires Nerd Font)
|
|
90
|
-
|
|
90
|
+
ftreeview --icon-set nerd
|
|
91
91
|
|
|
92
92
|
# WSL / network drive troubleshooting (force polling watcher)
|
|
93
|
-
FTREE_USE_POLLING=1
|
|
93
|
+
FTREE_USE_POLLING=1 ftreeview
|
|
94
94
|
|
|
95
95
|
# Static view (no live watching)
|
|
96
|
-
|
|
96
|
+
ftreeview --no-watch
|
|
97
97
|
```
|
|
98
98
|
|
|
99
99
|
## Environment Variables
|
|
@@ -123,7 +123,7 @@ ftree --no-git
|
|
|
123
123
|
### Main View
|
|
124
124
|
|
|
125
125
|
```
|
|
126
|
-
|
|
126
|
+
ftreeview v0.1.0 │ ./projects/myapp │ 42 files, 12 dirs │ Watching... │ Git: clean
|
|
127
127
|
q:quit ↑↓:nav ←→:expand/collapse r:refresh ?:help
|
|
128
128
|
|
|
129
129
|
📁 src
|
|
@@ -141,7 +141,7 @@ q:quit ↑↓:nav ←→:expand/collapse r:refresh ?:help
|
|
|
141
141
|
### Git Status View
|
|
142
142
|
|
|
143
143
|
```
|
|
144
|
-
|
|
144
|
+
ftreeview v0.1.0 │ ./projects/myapp │ 42 files, 12 dirs │ Watching... │ Git: 2M 1A
|
|
145
145
|
q:quit ↑↓:nav ←→:expand/collapse r:refresh ?:help
|
|
146
146
|
|
|
147
147
|
📁 src
|
|
@@ -164,8 +164,8 @@ q:quit ↑↓:nav ←→:expand/collapse r:refresh ?:help
|
|
|
164
164
|
|
|
165
165
|
```bash
|
|
166
166
|
# Clone the repository
|
|
167
|
-
git clone https://github.com/
|
|
168
|
-
cd
|
|
167
|
+
git clone https://github.com/chaitanyame/watchout.git
|
|
168
|
+
cd watchout
|
|
169
169
|
|
|
170
170
|
# Install dependencies
|
|
171
171
|
npm install
|
|
@@ -178,13 +178,13 @@ node dist/cli.js /path/to/explore
|
|
|
178
178
|
|
|
179
179
|
# Link globally for testing
|
|
180
180
|
npm link
|
|
181
|
-
|
|
181
|
+
ftreeview
|
|
182
182
|
```
|
|
183
183
|
|
|
184
184
|
### Project Structure
|
|
185
185
|
|
|
186
186
|
```
|
|
187
|
-
|
|
187
|
+
ftreeview/
|
|
188
188
|
├── src/
|
|
189
189
|
│ ├── cli.js # CLI entry point
|
|
190
190
|
│ ├── App.jsx # Root React component
|