summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortheprimeagain <the.primeagen@gmail.com>2026-03-01 09:01:29 -0700
committertheprimeagain <the.primeagen@gmail.com>2026-03-01 09:01:29 -0700
commit23fd5532a6cda8e899c7f6dc20e522c40b17485f (patch)
treec3b7c3219ccaa68eafd232aec8f8e14ae36939c2
parentc65de294bdf0e077e1b9c52204baa93015cc08c2 (diff)
downloada4-23fd5532a6cda8e899c7f6dc20e522c40b17485f.tar.xz
a4-23fd5532a6cda8e899c7f6dc20e522c40b17485f.zip
small fix to the view_Logs
-rw-r--r--TODO.md12
-rw-r--r--lua/99/init.lua3
-rw-r--r--lua/99/window/select-window.lua1
3 files changed, 13 insertions, 3 deletions
diff --git a/TODO.md b/TODO.md
index 179ca69..683f6f8 100644
--- a/TODO.md
+++ b/TODO.md
@@ -7,7 +7,17 @@
track of marks after deserialization
* filtering in `open`
- * could add s, v, t for search, visual/vibe, and search.
+select input windows should also have a filter and a set of keys that can be set that trigger the filter.
+
+select { filter_keymap = { <key> = {desc = <desc>, cb = fun(x: str_items[]) -> number[] ... end } }
+
+that means that we cna filter out and return back the indices of the items we wish to keep
+
+that means when one of these are pressed, we need to
+
+we must also keep track of the total original items as well. and must make the filters into kepmap items too
+
+
* for vibe coding, i would like a way not only to transfer to a spot to review the
code, but to toggle the diff view of the current item i am on. This means
diff --git a/lua/99/init.lua b/lua/99/init.lua
index f08ba11..7a15dfc 100644
--- a/lua/99/init.lua
+++ b/lua/99/init.lua
@@ -359,7 +359,8 @@ end
function _99.view_logs()
local requests = _99_state.tracking.history
- select_window(requests, function(idx)
+ local str_requests = Tracking.to_selectable_list(requests)
+ select_window(str_requests, function(idx)
local r = requests[idx]
local logs = Logger.logs_by_id(r.xid)
if logs == nil then
diff --git a/lua/99/window/select-window.lua b/lua/99/window/select-window.lua
index 3c90e0b..5799580 100644
--- a/lua/99/window/select-window.lua
+++ b/lua/99/window/select-window.lua
@@ -26,5 +26,4 @@ local function select_window(lines, cb)
})
end
-
return select_window