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

Feature Request: Use ctrl key to perform default action #44

Closed
David-Maisonave opened this issue Mar 2, 2022 · 4 comments
Closed

Feature Request: Use ctrl key to perform default action #44

David-Maisonave opened this issue Mar 2, 2022 · 4 comments

Comments

@David-Maisonave
Copy link

David-Maisonave commented Mar 2, 2022

Use the ctrl key to perform the default action automatically without any further user input.

I recommend using ctrl key combination to have PasteIntoFile perform the default action automatically without having to prompt user with a dialog window.

Another option that would be good to have is an action for the shift key select, where when user holds the shift key while selecting "Paste Into File", a folder is appended to the Current Location field. The appended folder can be Text for text files and Image for image.
There can be and option to change the default appended folders via command line, like there is for /filename.

These two options could be made to work together so if user holds both ctrl-shift key while selecting "Paste Into File", it will create the file in the sub-folder automatically without prompting the user.

If needed, I could try to do the implementation myself. I'm a C++ programmer and I've done modifications on a few C-sharp projects before.

@David-Maisonave
Copy link
Author

I've created a new version of this program with the above changes:
See following fork:
https://github.com/David-Maisonave/PasteIntoFile

Please feel free to pull the changes into the main.

@EslaMx7
Copy link
Owner

EslaMx7 commented Mar 3, 2022

@David-Maisonave Brilliant! what a great effort! Thank you very much, David, I will definitely pull it as soon as possible.

@David-Maisonave
Copy link
Author

The version of PasteIntoFile in eltos/PasteIntoFile, uses the shift key for the no-popup option.
I rather that both versions have similar keyboard behavior, so I'm going to reverse the keys so that the shift key forces the no-popup and the ctrl key triggers creating the sub folder.

Also I'm going to add right mouse button logic to do the no-popup so that users can perform no-popup action without having to touch the keyboard.

@David-Maisonave
Copy link
Author

I updated the code to switch ctrl and shift functionality, but I couldn't figure out how to get the right mouse button logic to work, so I'll have to leave that for another time.

I updated the README.md with info on the new logic.

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