TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Show HN: A programmable tooltip on Mac OS

242 点作者 tanin大约 5 年前

15 条评论

jan_g大约 5 年前
&gt; Copying a millisecond-from-epoch number, visiting a website that can convert it to human-readable date, pasting the number, and hitting enter<p>I use the builtin `date` utility for this specific task, instead of querying another webpage to translate it.<p><pre><code> $ date -r 1577733633 Mon Dec 30 20:20:33 CET 2019</code></pre>
评论 #22924494 未加载
评论 #22929899 未加载
评论 #22924420 未加载
评论 #22924422 未加载
pcr910303大约 5 年前
Looks somewhat similar to Popclip[0], but is less intrusive(user needs to be explicit) and more visual(result is shown below).<p>Very interesting solution for text manipulation. (A bit off topic but...) Seeing these tools which primary interaction happens with the clipboard make me think that the GUI equivalent of UNIX pipes is the clipboard — it allows programs to interoperate in an unstructured fashion.<p>[0]: <a href="https:&#x2F;&#x2F;pilotmoon.com&#x2F;popclip&#x2F;" rel="nofollow">https:&#x2F;&#x2F;pilotmoon.com&#x2F;popclip&#x2F;</a><p>[edit]: fixed typo &amp; changed some words to convey my meaning better.
评论 #22921374 未加载
评论 #22923442 未加载
评论 #22925685 未加载
aasasd大约 5 年前
You can do similar stuff with Alfred, which happens to already be quite useful for frequent tasks. At least with Alfred 2, dunno about new versions. Create a workflow, put in a single hotkey trigger block and choose for it to pop up Alfred&#x27;s window with the selection and the cursor in the beginning. I&#x27;m using alt-shift-space as the key. Now you can select text, mash the hotkey and run any of the other workflows that have a ‘keyword’ assigned, plus have ‘script filters’ populate the result&#x2F;tip list before anything is run. I&#x27;m using this to invoke search engines or to add notes in Org-mode, without bothering with the clipboard.<p>While I&#x27;m on this topic, let me add that Lua is way faster than Python or even JS, so it enhances the responsiveness if used for workflow scripts or ‘script filters’.<p>I&#x27;m also using the Automate app on Android to very similar ends: it can have your workflows invoked via the text selection menu or through sharing (no addons with more payment and embedded ads code necessary, like with Tasker).
评论 #22926044 未加载
评论 #22923931 未加载
Corrado大约 5 年前
This looks like it might help me do something I do multiple times a day. I work with multiple AWS accounts and have to sign in to several different ones each day.<p>Currently, I have to: - sign in to AWS SSO - choose an account - copy the ENV VARs to my clipboard - select an iTerm2 tab - paste ENV VARs into the tab<p>Using &#x27;tip&#x27; I think I could automated the last 3 steps. It&#x27;s a small win, but when you do it multiple times a day it adds up.
评论 #22922082 未加载
评论 #22921788 未加载
评论 #22921742 未加载
dmitriid大约 5 年前
Awesome. Exactly what the all-but-abandoned &quot;services&quot; concept was supposed to do in MacOS (replaced by the all-but-abandoned extensions).
评论 #22923181 未加载
jtbayly大约 5 年前
The title doesn’t do it justice once I saw it.<p>These aren’t simply tool tips. They are actions.
评论 #22924500 未加载
aasasd大约 5 年前
Btw, if you want to be even lazier and not involve the other hand—services can be run from the context menu (which is a bit busy but at least it&#x27;s available).<p>Also, regarding Swift, the language is pretty simple: I did&#x27;t know either ObjC or Swift but was able to make a small program in it. The most annoying thing is that Swift&#x27;s APIs and types constantly change between versions, so you have to translate between the docs and your version of OSX.
评论 #22925805 未加载
sneak大约 5 年前
This is neat, reminds me a little of Apple Data Detectors, a text selection parsing thing that Apple shipped around System 8 or so. I still miss it.
sportsaw大约 5 年前
I haven’t used the Acme text editor, but this reminds me of what I have read about it in that any text can be a command. Very neat looking.
评论 #22942346 未加载
nonninz大约 5 年前
This is fantastic, thank you.<p>I have two questions:<p>1. Did you decide against including any script in the app bundle for more privacy? It looks like it.<p>2. So all scripts must be appended in that same file? Have you thought about a behavior like a &quot;.d&quot; directory in the recent &quot;Unix world&quot;, where each file can add configuration options? That would enable using different scripts and different languages.
评论 #22924588 未加载
hobofan大约 5 年前
Awesome!<p>For a lot of my personal productivity tools, I&#x27;ve been using Alfred, but for some of them a tooltip would be a lot more natural. Looking forward to using it!
ymt_1503大约 5 年前
Looks pretty neat.
评论 #22942335 未加载
baby大约 5 年前
Oh wow. Plugin to translate chinese to english?
评论 #22923439 未加载
评论 #22924595 未加载
macarthy12大约 5 年前
ออซัม
评论 #22942333 未加载
HABytes大约 5 年前
I saw it but title did not justice it.
评论 #22941514 未加载