You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey, thanks a lot for the stackline, it's really useful.
In my setup I'm working with multiple windows of the same app (IntelliJ in my case) and navigating to the given one requires remembering the order of them (or browsing until you find what you look for).
It could be useful to show the titles next to the indicators. This would be quite intrusive so I was thinking of showing them only for a limited period of time since the last focus change.
I tried looking at the code myself but my lack of knowledge of both Lua and hammerspoon API made implementing it a real challenge.
That's an awesome idea @Krever … something I've been thinking about too.
One of my use-cases for stackline is grouping browser tabs. The result is a stack of 4-5 chrome icons that all look the same. Personally, this hasn't been that disorienting (which is probably why I haven't done it yet) … but I can see how it could be a problem.
showing them only for a limited period of time since the last focus change.
Now THAT is brilliant! I had only thought of displaying them on hover … which isn't great because … mouse. This is a much better idea.
Would you expect the title to appear on the inside-side of the indicator, which would overlap parts of the active window?
A challenge I foresee with this is the need to filter window title text. Windows (especially browser windows) sometimes have ridiculous titles like:
Ridiculously long blog post title: 10 quick tricks on how to write awesome blog posts · Writing · Freelance · Other cool keyword · Search results for "how to write more gud" – WriteBuddy is the BEST – writebuddy.com – YOU'RE THE 1,000th VISITOR! CLAIM YOUR PRIZE!
Sigh. :-) I guess the quick version can just truncate with ellipses after a reasonable number of characters, and get smarter about displaying only relevant parts of the window title in a future revision.
Would you expect the title to appear on the inside-side of the indicator, which would overlap parts of the active window?
Yup, this sounds most intuitive.
Sigh. :-) I guess the quick version can just truncate with ellipses after a reasonable number of characters, and get smarter about displaying only relevant parts of the window title in a future revision.
That would be totally fine with me, especially if we could put the number of characters in the config.
Really thought I'd be able to work on this this weekend… but #32 was trickier than expected. I'd like to get that and #33 done first, but I'm looking forward to window titles!
--[[ make a descriptive title for a window params : window, length (int) returns : string combines the application title and, if it's different, the window title too. the whole thing will get truncated if it's too long ]]functionwindowDescriptor(window, maxDescriptorLength)
out=window:application():title()
wt=window:title()
if (wt~=out) thenout=out.." / " ..wtendif (out:len() >maxDescriptorLength) thenout=out:sub(0, maxDescriptorLength)
endreturnoutend
Activity
AdamWagner commentedon Sep 10, 2020
That's an awesome idea @Krever … something I've been thinking about too.
One of my use-cases for
stacklineis grouping browser tabs. The result is a stack of 4-5 chrome icons that all look the same. Personally, this hasn't been that disorienting (which is probably why I haven't done it yet) … but I can see how it could be a problem.Now THAT is brilliant! I had only thought of displaying them on hover … which isn't great because … mouse. This is a much better idea.
Would you expect the title to appear on the inside-side of the indicator, which would overlap parts of the active window?
A challenge I foresee with this is the need to filter window title text. Windows (especially browser windows) sometimes have ridiculous titles like:
Sigh. :-) I guess the quick version can just truncate with ellipses after a reasonable number of characters, and get smarter about displaying only relevant parts of the window title in a future revision.
Krever commentedon Sep 11, 2020
Yup, this sounds most intuitive.
That would be totally fine with me, especially if we could put the number of characters in the config.
AdamWagner commentedon Sep 18, 2020
Cool! I hadn't thought of making
truncateAtconfigurable. Very neat.AdamWagner commentedon Sep 20, 2020
Really thought I'd be able to work on this this weekend… but #32 was trickier than expected. I'd like to get that and #33 done first, but I'm looking forward to window titles!
AdamWagner commentedon Oct 15, 2020
Note to self: Hammerspoon pro https://github.com/szymonkaliski implemented window title function like this:
from: https://github.com/szymonkaliski/dotfiles/blob/master/Dotfiles/hammerspoon/playground/cheaphints.lua
AdamWagner commentedon Nov 29, 2020
@Krever Just wanted to give you an update on this. Here's a rough list of what I'm planning to work on: