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: source/main.v
+27-9Lines changed: 27 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -13,9 +13,6 @@ const (
13
13
Can a tray app react to keyboard inputs ?
14
14
TODO :
15
15
R1:
16
-
+ apparition dans un dossier choisi
17
-
+ si ctrl + 1->9 jump au fichier dans x
18
-
+ faire un release propre : -prod, tous les fichiers de config propres dans un zip
19
16
20
17
R2:
21
18
. multiple file selection
@@ -39,7 +36,7 @@ R2:
39
36
- progress bar search
40
37
- progress bar paste folders
41
38
- copy name of elem
42
-
- config : colors
39
+
- config : colors (colors of the selected 'window/panel')
43
40
- zip
44
41
- config : choose your own border chars
45
42
- Launch programs (with extention name?) (avec truc comme l'autocomplétion sous la barre de recherche)
@@ -507,6 +504,26 @@ fn event(e &tui.Event, x voidptr) {
507
504
spawn os.execute(app.key_binds[e.code.str()])
508
505
app.refresh=true
509
506
app.last_event='exec'
507
+
}else {
508
+
nb:=match e.code.str() {
509
+
"_1" {1}
510
+
"_2" {2}
511
+
"_3" {3}
512
+
"_4" {4}
513
+
"_5" {5}
514
+
"_6" {6}
515
+
"_7" {7}
516
+
"_8" {8}
517
+
"_9" {9}
518
+
else {0}
519
+
}
520
+
if nb >0 {
521
+
if e.modifiers.has(.alt){
522
+
app.jump_i(-nb)
523
+
} else {
524
+
app.jump_i(nb)
525
+
}
526
+
}
510
527
}
511
528
}
512
529
}
@@ -564,7 +581,7 @@ fn (mut app App) render() {
564
581
bottom_text:='${(if !app.search_results[app.search_i].is_dir() {space_nb(app.search_results[app.search_i].file_size().str()) + 'o'} else {'Directory'}):-15} | Modified the ${app.search_results[app.search_i].write_time().nice_time()} | Accessed the ${app.search_results[app.search_i].access_time().nice_time()} | Creatied the ${app.search_results[app.search_i].creation_time().nice_time()}'
565
582
app.tui.draw_text(0, app.tui.window_height, if bottom_text.len > app.tui.window_width {bottom_text[0..app.tui.window_width]} else {bottom_text})
566
583
}else{
567
-
bottom_text:='${(if !app.dir_list[app.actual_i].is_dir() {space_nb(app.dir_list[app.actual_i].file_size().str()) + 'o'} else {'Directory'}):-15} | Modified the ${app.dir_list[app.actual_i].write_time().nice_time()} | Accessed the ${app.dir_list[app.actual_i].access_time().nice_time()} | Created the ${app.dir_list[app.actual_i].creation_time().nice_time()}'
584
+
bottom_text:='${(if !app.dir_list[app.actual_i].is_dir() {space_nb(app.dir_list[app.actual_i].file_size().str()) + 'o'} else {'Directory'}):-15} | Modified the ${app.dir_list[app.actual_i].write_time().nice_time()} | Accessed the ${app.dir_list[app.actual_i].access_time().nice_time()} | Created the ${app.dir_list[app.actual_i].creation_time().nice_time()}${app.actual_scroll}'
568
585
app.tui.draw_text(0, app.tui.window_height, if bottom_text.len > app.tui.window_width {bottom_text[0..app.tui.window_width]} else {bottom_text})
0 commit comments