Show HN: Pinblocks – Your Chats with Notion-Style Collaborative Blocks
pinblocks.io1 pointsby p2hari0 comments
for i, window in ipairs(allWindows) do
if window:title() and window:title() ~= "" then
local app = window:application()
local appName = app and app:name() or "Unknown"
table.insert(windowChoices, {
text = appName .. " - " .. window:title(),
subText = "Window " .. i,
window = window,
id = i
})
end
end
local chooser = hs.chooser.new(function(choice)
if choice and choice.window then
choice.window:focus()
local frame = choice.window:frame()
hs.mouse.absolutePosition({ x = frame.x + frame.w / 2, y = frame.y + frame.h / 2 })
end
end)
chooser:choices(windowChoices)
chooser:searchSubText(true)
chooser:show()
end
meet.hn/city/dk-Copenhagen
---
[ my public key: https://keybase.io/shriharip4; my proof: https://keybase.io/shriharip4/sigs/wWMgWRA4WSEWYfK_-_W7xCsJomkAXpWQpnL2x4lkgzc]
shrihari.p4 at gma...c.m