Toggle the Find Results Window in Notepad++ with a Hotkey

I write software and play with websites in my spare time, mostly using Notepad++.  One of the banes of my existence is that there is no keyboard shortcut for closing the Find Results pane / window that appears when I do one of the following:

  • Find All in All Opened Documents
  • Find All in Current Document
  • Find All (in multiple files)

There isn’t one built in, as discussed in this question on Superuser.com, as well as this one and this one. F7 opens the pane or window, but doesn’t close it. The second question link above suggests that Esc will close the pane or window, but this doesn’t work for me, at least in Notepad++ >= 6.

I got fed up with this and created a script for my own use, using AutoHotKey. The following script will convert F7 from an open-only shortcut to a toggle; it opens it if it isn’t already open, and closes it if it is.

Here is the script:

I hope this helps everyone else out there who loves Notepad++!

Note: I posted this originally on Superuser.com.

Edited 1/14/2014 to fix a bug in detecting the undocked window

Jumper Cables for the Mind

Here’s one way to get those juices flowing: Jumper Cables for the Mind – NYTimes.com.  We’re already concerned about people enhancing their ability to access and process information using tools like Google Glass, and it’s already well-known that everyday activities like drinking a cup of coffee can enhance mental performance.  Now, we’re going to have to watch out for people with electrodes stuck to their heads.,,

On a related note, you might head over to Lumosity.com if you’re interested in some (non-electrifying) mental stimulation.

Ridiculous Mountaintop Plane Landing

I’m posting this just because it’s amazing.  Land it like a boss.

h/t That Reminds Me: Didja Hear About The Mountain-Climbing Economists? | The Borderline Sociopathic Blog For Boys.

Loneliest Human

The xkcd “What if?” blog has a great analysis of the people most eligible for the title of Loneliest Human.  Not that I ever thought I had even come close, but it makes my whole “6 miles from the nearest light bulb” (at Philmont Scout Ranch) thing seem way less impressive.

I Sold My Truck

I sold my truck today. I had it barely a year, but have barely used it in the last couple of months. Now that Sarah and I work at the same place, we commute together. So I had only driven the truck maybe three times in the last two months, and then only because I felt like it.

In short, I had a truck that I couldn’t part in the garage (or even the driveway) at home, couldn’t park in the garage at work, and basically never drove. I’ll miss having a truck, but it just didn’t make sense to keep it.

Site Rebuild

I learned last night that this site was hacked somehow. I don’t know if it was due to a vulnerability in WordPress or a WordPress plugin or, more likely, a vulnerability in the many, many other scripts and add-ons that I had accumulated here over the last 14 years of running this site. As a precaution, I nuked everything and rebuilt my WordPress installation from scratch, with only the bare essentials.

Many features of this site may be temporarily or permanently unavailable. For example, the PCB’99 directory feature and the K9 blacklist are gone and probably will not return. If there is something that you are looking for and cannot find, please let me know.

Fascinating New Brain Research

Researchers have observed never-before-detected brain activity in deep coma states.  This has obvious implications for end-of-life decisions, but also (as the article points out) for trauma patients who are placed into comas for medical reasons.  Very interesting stuff.

Last Day of Biglaw

Today was my last day as an associate at BakerHostetler. I have really enjoyed getting to know the wonderful people there over the last year and change.

Tomorrow, I will be starting in my new position as a staff attorney at the Texas First Court of Appeals, here in Houston. I am looking forward to the new and different challenges and opportunities there.

Make Yourself Happier

I love mind-hacking and ways to improve my life without doing anything radical, and this post from the Buffer blog is right in line with that: 10 simple things you can do today that will make you happier, backed by science  I can testify from personal experience that many of these work; I’ll have to try the others!

August Reboot

The last few months have been completely crazy — I worked well over 300 hours in July alone — and this blog has once again fallen by the wayside. It’s time to reboot it. I plan to roll out a new design fairly soon, and I am going to up the posting frequency significantly. Stay tuned!