From 249846c819a5f68ec58080f000ce8ab108e7b568 Mon Sep 17 00:00:00 2001 From: Joe Date: Mon, 8 Jan 2024 20:20:20 +0100 Subject: cool --- ROADMAP.md | 2 +- c_defs.go | 9 +++------ i_ui.go | 12 ++++++------ 3 files changed, 10 insertions(+), 13 deletions(-) diff --git a/ROADMAP.md b/ROADMAP.md index ae9a62e..1795c12 100644 --- a/ROADMAP.md +++ b/ROADMAP.md @@ -2,7 +2,7 @@ ## v0.1 -- [ ] folders +- [x] folders - [ ] folding folders ## v0.2 diff --git a/c_defs.go b/c_defs.go index a6eeaca..9e70fb0 100644 --- a/c_defs.go +++ b/c_defs.go @@ -43,7 +43,7 @@ * POSSIBILITY OF SUCH DAMAGE. * * hardflip: src/c_defs.go - * Wed Dec 27 15:55:11 2023 + * Mon Jan 08 12:20:53 2024 * Joe * * constants @@ -55,17 +55,14 @@ const ( W = 0 H = 1 DATA_DIR_NAME = "hardflip" + VERSION = "v0.0" ) const ( NORMAL_KEYS_HINTS = ` -(q)uit - [x](a)dd/(i)nsert host - -[x](e)dit - -(D)elete - -[x](s)earch - [x](m)kdir - -(c-r) reload - +[x](s)earch - [x](?) help` DELETE_KEYS_HINTS = ` (q)uit - diff --git a/i_ui.go b/i_ui.go index 5426d16..3473245 100644 --- a/i_ui.go +++ b/i_ui.go @@ -43,7 +43,7 @@ * POSSIBILITY OF SUCH DAMAGE. * * hardflip: src/i_ui.go - * Mon Jan 08 11:37:32 2024 + * Mon Jan 08 12:18:01 2024 * Joe * * interfacing with the user @@ -139,7 +139,6 @@ func i_draw_box(s tcell.Screen, x1, y1, x2, y2 int, title string, fill bool) { } func i_bottom_text(ui HardUI) { - spaces := "" text := "" switch ui.mode { @@ -148,12 +147,13 @@ func i_bottom_text(ui HardUI) { case DELETE_MODE: text = DELETE_KEYS_HINTS } - for i := 0; i < (ui.dim[W]) - len(text); i++ { - spaces += " " - } i_draw_text(ui.s, 0, ui.dim[H] - 1, ui.dim[W], ui.dim[H] - 1, - ui.def_style.Dim(true), spaces + text) + ui.def_style.Dim(true), text) + text = " " + VERSION + i_draw_text(ui.s, + ui.dim[W] - 5, ui.dim[H] - 1, ui.dim[W], ui.dim[H] - 1, + ui.def_style.Dim(true), text) } func i_draw_zhosts_box(ui HardUI) { -- cgit v1.2.3