Better HN
topnewbestaskshowjobs
Log inSign up

diogotito

4 karma · joined Apr 11, 2019 (7y ago) · 3 submissions

Submissions

comment 2y ago · link · parent

> Having said that, I wish we can select the objects (e.g., text box, arrows) we have created and move them around. […]

On Windows I like to use Greenshot because the editor opens up in a dedicated window and gives me full control over the objects I place (move, resize, change colors, duplicate, cut-copy-paste, reorder, save objects to file for reuse...). It's also open source, but seems unmaintained for some time now (but there is a fork implementing zoom in the editor).

comment 3y ago · link · parent

I also wrote my AHK functions to have hotkeys to cycle through (or toggle) windows from an application! Here: https://github.com/diogotito/autohotkey-scripts/blob/desktop...

and here's where I declare most of my hotkeys: https://github.com/diogotito/autohotkey-scripts/blob/desktop...

It uses AHK's window groups. I only regret having written this in AHK v1, which was a bit of a pain in the neck. I intend rewrite them in AHK v2, which looks like a halfway step to ES6 with lambdas, closures and all. So many quirks gone! I tried it a bit and it felt more fun and productive.

As a simpler alternative (which I use for work), one can pin the 10 most used applications on the taskbar and do:

- Win+<N> to launch, toggle, or choose a window from the Nth application

- Ctrl+Win+<N> to launch, toggle or cycle through the windows from the Nth application

- Shift+Win+<N> to launch a new window

- Alt+Win+<N> to bring up the Jump List

Then you can use a simpler hotkey manager (like PowerToys' Keyboard Manager) to bind to the Ctrl+Win+<N> shortcuts.

> Plus a tweak: When launching, programs may open in the background because Windows attempts to prevent applications stealing focus when you are working in another program. I overcome this by focusing the tray before launching.

Aaah! That explains some things. That does happen to me sometimes and it's a bit annoying. I got used to pressing my hotkey again when I noticed the taskbar icon blinking green to bring up the new window, or just spamming WinActivate and hope for the best. Thanks!

comment 7y ago · link · parent

You can pipe the output of cURL to Vim like this:

  curl ... | vim -
Then, you can review the script, maybe tweak it a little, and you can send it to sh's stdin by running

  :w !sh
Or you can just quit Vim (:q! or ZQ) and nothing happens.