jumpapp icon indicating copy to clipboard operation
jumpapp copied to clipboard

Add a --no-launch flag (feature request)

Open mnieber opened this issue 4 years ago • 3 comments

I use jumpapp everyday, all the time, so first of all: thank you. I have a feature request related to the following use-case:

I use my short-cut key to jump to the gitk window when no such window exists, and get a message (from gitk that has just been launched) telling me that there is no .git directory. A better solution would be to do nothing. This could be achieved by using jumpapp --no-launch gitk.

Could this be added?

mnieber avatar Apr 26 '22 08:04 mnieber

I decided to add this myself when I saw that it's already present in the source as N. It was added by the OP in this commit as part of PR #74.

So you can use like this:

$ jumpapp -N -t Toggl google-chrome

In this case, it's looking for a window with title Toggl. If it doesn't find it, it will output:

Not launching because the -N was given and no window was found for 'google-chrome'

So the thing that's left on this issue is mentioning N in the readme. :-)

tylercollier avatar Aug 22 '23 17:08 tylercollier

@tylercollier Ah, good point, I missed that. Will you create a PR, or shall I do it?

mnieber avatar Aug 22 '23 18:08 mnieber

You can, and then you get credit in the README too. Thanks for adding the feature!

tylercollier avatar Aug 22 '23 19:08 tylercollier