-
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5 from deadlydog/SeparateUserCommandsFromDefaultC…
…ommands
- Loading branch information
Showing
19 changed files
with
344 additions
and
119 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,30 @@ | ||
# Best Practices | ||
|
||
* Do not edit the `AhkCommandPicker.ahk`, `CommandScriptsToInclude.ahk`, `Commands\DefaultCommands.ahk`, and `Commands\DefaultHotkeys.ahk` files, as they may be updated when new versions of AHK Command Picker are released, so you may run into conflicts (or lose your customizations) when updating these files. | ||
## Use multiple files to organize your commands | ||
|
||
* While you could dump all of your commands into the `Commands\MyCommands.ahk` file, that file may soon become large and unwieldy. You will likely want to create some new .ahk files in the Commands folder and `#Include` the new files in the `MyCommands.ahk` file. Maybe try to keep them logically separated, such as putting commands you typically use at work in a `Commands\Work.ahk` file, and home ones in `Commands\Home.ahk`. However you want to organize them is up to you. | ||
While you could dump all of your commands into the `UserCommands\MyCommands.ahk` file, that file may soon become large and unwieldy. | ||
You may instead want to create new .ahk files in the `UserCommands` folder and `#Include` them from the `UserCommands\MyCommands.ahk` file. | ||
For example, put commands you typically use at work in a `UserCommands\Work.ahk` file, and home ones in `UserCommands\Home.ahk`. | ||
However you want to organize them is up to you, but new files should always be created in the `UserCommands` directory. | ||
|
||
* One important thing to note is that whenever a `hotkey` is encountered, any commands that may have been defined after it will not be processed and added to the AHK Command Picker's list of commands. So it is important that all hotkeys and hotstrings be declared **AFTER** all commands. This is why it is crucial that hotkeys and hotstrings are defined from the MyHotkeys.ahk file. | ||
## Do not add Hotkeys int the Command files | ||
|
||
One important thing to note is that whenever a `hotkey` (e.g. _^j::_) or `hotstring` (e.g. _::btw::by the way_) is encountered, any commands that may have been defined after it will not be processed and added to the AHK Command Picker's list of commands. | ||
So it is important that all hotkeys and hotstrings be declared **AFTER** all commands. | ||
**To do this, ensure that hotkeys and hotstrings are defined or `#Include`d in the `UserCommands\MyHotkeys.ahk` file.** | ||
|
||
## Do not edit the Default Commands | ||
|
||
Do not edit the `AhkCommandPicker.ahk` file or any files in the `DefaultCommands` directory, as they may be updated when new versions of AHK Command Picker are released, so you may run into conflicts (or lose your customizations) when updating these files. | ||
Only edit the `UserCommands\MyCommands.ahk` and `UserCommands\MyHotkeys.ahk` files, as well as any other files you create in the `UserCommands` directory. | ||
|
||
## Next Steps | ||
|
||
That's it. | ||
Congrats! | ||
You've read all of the documentation! 🎉👏 | ||
|
||
Return to [the table of contents][DocumentationTableOfContents]. | ||
|
||
<!-- Links --> | ||
[DocumentationTableOfContents]: DocumentationHomePage.md |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,17 @@ | ||
# Documentation Table Of Contents | ||
|
||
AHK Command Picker requires [AutoHotkey_L][AutoHotkeyWebsiteUrl] to be installed, as it uses features that are only available in this version of AutoHotkey. | ||
AHK Command Picker requires [AutoHotkey v1.1][AutoHotkeyDownloadPageUrl] (AutoHotkey_L) to be installed, as it uses features that are only available in this version of AutoHotkey. | ||
|
||
1. [Getting Started With AHK Command Picker][GettingStartedPage] | ||
|
||
1. [Using Commands With Parameters][UsingCommandsWithParametersPage] | ||
|
||
1. [Adding Multiple Commands At Once][AddingMultipleCommandsAtOncePage] | ||
|
||
1. [Tips and Tricks][TipsAndTricksPage] | ||
|
||
1. [Best Practices][BestPracticesPage] | ||
|
||
<!-- Links --> | ||
[AutoHotkeyWebsiteUrl]: http://www.autohotkey.com | ||
[GettingStartedPage]: GettingStarted.md | ||
[UsingCommandsWithParametersPage]: UsingCommandsWithParameters.md | ||
[AddingMultipleCommandsAtOncePage]: AddingMultipleCommandsAtOnce.md | ||
[AutoHotkeyDownloadPageUrl]: https://www.autohotkey.com/download/ | ||
[BestPracticesPage]: BestPractices.md | ||
[GettingStartedPage]: GettingStarted.md | ||
[TipsAndTricksPage]: TipsAndTricks.md | ||
[UsingCommandsWithParametersPage]: UsingCommandsWithParameters.md |
Oops, something went wrong.