diff options
-rw-r--r-- | Makefile | 20 | ||||
-rw-r--r-- | ROADMAP.md | 1 | ||||
-rw-r--r-- | src/c_defs.go (renamed from c_defs.go) | 0 | ||||
-rw-r--r-- | src/c_exec.go (renamed from c_exec.go) | 0 | ||||
-rw-r--r-- | src/c_hardflip.go (renamed from c_hardflip.go) | 0 | ||||
-rw-r--r-- | src/c_init.go (renamed from c_init.go) | 0 | ||||
-rw-r--r-- | src/c_ldirs.go (renamed from c_ldirs.go) | 0 | ||||
-rw-r--r-- | src/c_lhosts.go (renamed from c_lhosts.go) | 0 | ||||
-rw-r--r-- | src/c_litems.go (renamed from c_litems.go) | 0 | ||||
-rw-r--r-- | src/c_parse.go (renamed from c_parse.go) | 0 | ||||
-rw-r--r-- | src/c_utils.go (renamed from c_utils.go) | 0 | ||||
-rw-r--r-- | src/i_events.go (renamed from i_events.go) | 3 | ||||
-rw-r--r-- | src/i_host.go (renamed from i_host.go) | 0 | ||||
-rw-r--r-- | src/i_info.go (renamed from i_info.go) | 0 | ||||
-rw-r--r-- | src/i_ui.go (renamed from i_ui.go) | 0 |
15 files changed, 16 insertions, 8 deletions
@@ -11,20 +11,26 @@ # ======================== # # hardflip: Makefile -# Thu, 14 Dec 2023 15:33:28 +0100 +# Tue Jan 23 11:16:43 2024 # Joe # # GNU Makefile -.DEFAULT_GOAL := hf +TARGET := hf SHELL := /bin/sh -SRC := *.go +SRC_DIR := ./src/ +SRC_NAME := *.go +SRC = $(addprefix ${SRC_DIR}, ${SRC_NAME}) +.DEFAULT_GOAL := ${TARGET} run: ${SRC} - @go run ${SRC} + go run ${SRC_DIR} -hf: ${SRC} - @go build +${TARGET}: ${SRC} + go build -o ${TARGET} ${SRC_DIR} clean: - @go clean + go clean + rm -f ${TARGET} + +.PHONY: hf run clean @@ -37,6 +37,7 @@ ## v0.8 - [ ] single commands +- [ ] openstack ## v1.0 - wheelbite diff --git a/c_defs.go b/src/c_defs.go index 4145613..4145613 100644 --- a/c_defs.go +++ b/src/c_defs.go diff --git a/c_exec.go b/src/c_exec.go index 5c13f72..5c13f72 100644 --- a/c_exec.go +++ b/src/c_exec.go diff --git a/c_hardflip.go b/src/c_hardflip.go index e4aec6c..e4aec6c 100644 --- a/c_hardflip.go +++ b/src/c_hardflip.go diff --git a/c_init.go b/src/c_init.go index 6355d94..6355d94 100644 --- a/c_init.go +++ b/src/c_init.go diff --git a/c_ldirs.go b/src/c_ldirs.go index b2978f3..b2978f3 100644 --- a/c_ldirs.go +++ b/src/c_ldirs.go diff --git a/c_lhosts.go b/src/c_lhosts.go index 654da13..654da13 100644 --- a/c_lhosts.go +++ b/src/c_lhosts.go diff --git a/c_litems.go b/src/c_litems.go index 229df41..229df41 100644 --- a/c_litems.go +++ b/src/c_litems.go diff --git a/c_parse.go b/src/c_parse.go index 61d4dfc..61d4dfc 100644 --- a/c_parse.go +++ b/src/c_parse.go diff --git a/c_utils.go b/src/c_utils.go index 72761d8..72761d8 100644 --- a/c_utils.go +++ b/src/c_utils.go diff --git a/i_events.go b/src/i_events.go index e0889f4..526b4a4 100644 --- a/i_events.go +++ b/src/i_events.go @@ -289,7 +289,8 @@ func i_events(data *HardData) { } else if event.Rune() == 'D' && data.ldirs.head != nil { ui.mode = DELETE_MODE - } else if event.Key() == tcell.KeyEnter { + } else if event.Rune() == 'l' || + event.Key() == tcell.KeyEnter { if data.litems.curr == nil { break } else if data.litems.curr.is_dir() == false { diff --git a/i_host.go b/src/i_host.go index 0ff0eb2..0ff0eb2 100644 --- a/i_host.go +++ b/src/i_host.go diff --git a/i_info.go b/src/i_info.go index 271f1d0..271f1d0 100644 --- a/i_info.go +++ b/src/i_info.go |