Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions quickfix.lua
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,21 @@ end

local pattern = ""

function preBackspace(bp)
if bp ~= qfixPane then return true end
pattern = pattern:sub(1,-2)
micro.InfoBar():Message("search (backtick to cancel): "..pattern)
return false
end

-- Resets the pattern directly; it does not perform `DeleteWordLeft`.
function preDeleteWordLeft(bp)
if bp ~= qfixPane then return true end
pattern = ""
micro.InfoBar():Message("search (backtick to cancel): ")
return false
end

function onRune(bp, r)
if bp ~= qfixPane then
return
Expand Down