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: Use shift key to perform default action, and ctrl key for default path #45

Open
wants to merge 23 commits into
base: master
Choose a base branch
from

Conversation

David-Maisonave
Copy link

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

Use the ctrl key to append default folder to "Current Location" field, or to replace "Current Location" with a directory having fully qualified name (FQN) which includes drive letter.

Combination Key Usage

  • To create a file automatically (without a windows prompt), hold SHIFT key while choosing [Paste Into File] in the context menu.
  • To create the file in a default sub folder under the current directory, hold CTRL key while choosing [Paste Into File] in the context menu.
  • If default folders are changed to a full path (FQN), then holding the CTRL key will trigger replacing the "Current Location" field with the full path.
  • Holding both keys (CTRL+SHIFT) while choosing [Paste Into File] will create the text file automatically in the default folder associated with the file type.
    • The default sub folder for a text file is Text, and the default folder for an image file is Image.
    • The default sub folders can be changed using command line options.

Changing default folders:

  • To change the default Text Sub Folder:
    PasteIntoFile /TextDefaultDir MyDefaultTextFolder
  • To change the default Image Sub Folder:
    PasteIntoFile /ImageDefaultDir MyImgDir
  • To change the default path to a specific folder use a fully qualified path having a drive letter:
    PasteIntoFile /ImageDefaultDir C:\MyProject\Screenshots
    PasteIntoFile /TextDefaultDir C:\MyProject\SourceCode

Extension Combo List

  • Only image file types are displayed for an image file and only text file types are displayed for text file.
  • Added additional text file types for common script files.

Updated Help Screen

Updated help screen with information on the new command line options.

Updated Readme.md

Updated Readme.md with information on these new features.

Updated Version and Copyright date.

Updated version to 1.6.2.0, and updated copyright dates to 2022.
Copied content from AssemblyDescription to AssemblyTitle, because the content in AssemblyTitle is what is seen in "File Description". Product Name already contains the name that was in AssemblyTitle.
FileDescription

Added functionality for Ctrl key combination to have PasteIntoFile perform the default action automatically without having to prompt user with a dialog window.

Added Shift key combination, to add a default sub folder to 'Current Location' field.
The default sub folder for a text file is Text, and the default sub folder for an image file is Image.

Added command line options TextSubDir and ImageSubDir.
To change the default Text Sub Folder, use argument:
/TextSubDir MyDefaultTextFolder
To change the default Image Sub Folder, use argument:
/ImageSubDir MyImgDir

Added logic to have combo list for text files only show text file types, and for image files only show image file types.
Added additional text file types to the combo list.
Switch keys around (ctrl and shift) so that it matches other version of PasteIntoFile.
Added option to have fully qualified path for sub directories.
This allows users to specify a specific directory to add all files to.
Change command line option names for TextSubDir and ImageSubDir to TextDefaultDir and ImageDefaultDir.
Made this change because this option now supports both sub path and a full (FQN) path.
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

Successfully merging this pull request may close these issues.

None yet

1 participant