Update nightwatch75/file-search to 0.0.19 (#126)
Settings shortcut in the panel header, middle-elided paths, right-click copy, and a real indexed-file count. Co-authored-by: nightwatch75 <nightwatch75@users.noreply.github.com> Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
co-authored by
nightwatch75
Claude Opus 5
parent
549245d54b
commit
404765a456
@@ -7,7 +7,12 @@
|
||||
-- Click mapping:
|
||||
-- Left click — open/close the search panel
|
||||
-- Right click — open the search folder in the file manager
|
||||
-- Middle click — copy the search folder path to the clipboard
|
||||
--
|
||||
-- Middle click is deliberately not handled: every bar widget carries a built-in
|
||||
-- `middle = settings-open-widget` binding, and a bound gesture is masked off the
|
||||
-- widget's own input area, so an onMiddleClick here would never be called. The
|
||||
-- manifest could reclaim it with `[widget.actions] middle = "none"` (plugin API
|
||||
-- 14) — this plugin stays at the upstream behaviour instead.
|
||||
|
||||
local PANEL_ID = "nightwatch75/file-search:panel"
|
||||
|
||||
@@ -61,10 +66,5 @@ function onRightClick()
|
||||
noctalia.runAsync("xdg-open " .. shellQuote(searchRoot()) .. " >/dev/null 2>&1")
|
||||
end
|
||||
|
||||
function onMiddleClick()
|
||||
noctalia.copyToClipboard(searchRoot(), "text/plain")
|
||||
noctalia.notify(noctalia.tr("title"), noctalia.tr("copied_path"))
|
||||
end
|
||||
|
||||
noctalia.setUpdateInterval(1000)
|
||||
render()
|
||||
|
||||
Reference in New Issue
Block a user