Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
mnieber opened this issue Apr 26, 2022 · 3 comments
Open

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

mnieber opened this issue Apr 26, 2022 · 3 comments

Comments

@mnieber
Copy link
Contributor

mnieber commented Apr 26, 2022

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 mnieber changed the title Add an --no-launch flag (feature request) Add a --no-launch flag (feature request) Apr 26, 2022
@tylercollier
Copy link

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. :-)

@mnieber
Copy link
Contributor Author

mnieber commented Aug 22, 2023

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

@tylercollier
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants