aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoe <rbo@gmx.us>2023-12-28 20:20:20 +0100
committerJoe <rbo@gmx.us>2023-12-28 20:20:20 +0100
commit8f341fb4305a3be6bdfe5e4d10396e69471b169e (patch)
tree0777dd18c5ab18e4bfc07ed75a72ee359f42546a
parentdirty but that's the way (diff)
downloadhardflip-8f341fb4305a3be6bdfe5e4d10396e69471b169e.tar.gz
hardflip-8f341fb4305a3be6bdfe5e4d10396e69471b169e.tar.bz2
hardflip-8f341fb4305a3be6bdfe5e4d10396e69471b169e.tar.xz
hardflip-8f341fb4305a3be6bdfe5e4d10396e69471b169e.tar.zst
hardflip-8f341fb4305a3be6bdfe5e4d10396e69471b169e.zip
its not the way
-rw-r--r--c_hardflip.go5
-rw-r--r--c_init.go6
-rw-r--r--i_ui.go4
3 files changed, 10 insertions, 5 deletions
diff --git a/c_hardflip.go b/c_hardflip.go
index 3a677fd..356233e 100644
--- a/c_hardflip.go
+++ b/c_hardflip.go
@@ -47,6 +47,8 @@
package main
+import "fmt"
+
// the main data structure, holds up everything important
type HardData struct {
litems *ItemsList
@@ -67,6 +69,9 @@ func main() {
opts,
data_dir,
}
+ for dir := ldirs.head; dir != nil ; dir = dir.next {
+ fmt.Println("next dir")
+ }
return
i_ui(&data)
}
diff --git a/c_init.go b/c_init.go
index 7eb82a6..25155fd 100644
--- a/c_init.go
+++ b/c_init.go
@@ -80,8 +80,8 @@ func c_recurse_data_dir(dir, root string, opts HardOpts,
item_node.Dirs = &dir_node
item_node.Host = nil
*id++
- ldirs.add_back(&dir_node)
- litems.add_back(&item_node)
+ // ldirs.add_back(&dir_node)
+ // litems.add_back(&item_node)
for _, file := range files {
filename := file.Name()
if file.IsDir() == true {
@@ -98,7 +98,7 @@ func c_recurse_data_dir(dir, root string, opts HardOpts,
host_node.Filename = filename
host_node.Dir = &dir_node
dir_node.lhost.add_back(host_node)
- litems.add_back(&item_node)
+ // litems.add_back(&item_node)
}
}
}
diff --git a/i_ui.go b/i_ui.go
index 87650b0..c901a0f 100644
--- a/i_ui.go
+++ b/i_ui.go
@@ -296,8 +296,8 @@ func i_host_panel(ui HardUI, opts HardOpts, ldirs *DirsList) {
i_host_panel_dirs(ui, opts, dirs, line)
line++
for host := dirs.lhost.head;
- dirs.Folded == false && host != nil;
- host = host.next {
+ dirs.Folded == false && host != nil;
+ host = host.next {
i_host_panel_host(ui, opts, dirs, host, line)
line++
}