+4
CHANGELOG.md
+4
CHANGELOG.md
+1
-1
PROJECT_BOARD.md
+1
-1
PROJECT_BOARD.md
+3
-1
README.md
+3
-1
README.md
+1
-1
build.zig
+1
-1
build.zig
+1
-1
build.zig.zon
+1
-1
build.zig.zon
+2
-1
example-config.json
+2
-1
example-config.json
+1
src/config.zig
+1
src/config.zig
+16
-3
src/event_handlers.zig
+16
-3
src/event_handlers.zig
···
174
app.text_input.insertSliceAtCursor(":") catch {};
175
app.state = .command;
176
},
177
-
.jump_bottom => {
178
-
app.directories.entries.selectLast();
179
-
},
180
.jump_top => app.directories.entries.selectFirst(),
181
.toggle_verbose_file_information => app.drawer.verbose = !app.drawer.verbose,
182
}
183
} else {
184
switch (key.codepoint) {
···
174
app.text_input.insertSliceAtCursor(":") catch {};
175
app.state = .command;
176
},
177
+
.jump_bottom => app.directories.entries.selectLast(),
178
.jump_top => app.directories.entries.selectFirst(),
179
.toggle_verbose_file_information => app.drawer.verbose = !app.drawer.verbose,
180
+
.force_delete => {
181
+
const entry = lbl: {
182
+
const entry = app.directories.getSelected() catch {
183
+
try app.notification.writeErr(.UnableToDelete);
184
+
return;
185
+
};
186
+
if (entry) |e| break :lbl e else return;
187
+
};
188
+
189
+
app.directories.dir.deleteTree(entry.name) catch {
190
+
try app.notification.writeErr(.UnableToDelete);
191
+
return;
192
+
};
193
+
app.directories.removeSelected();
194
+
},
195
}
196
} else {
197
switch (key.codepoint) {