Skip to content

Commit

Permalink
Easter Eggs
Browse files Browse the repository at this point in the history
- talk more about the AboutNotepad++/F1 interface in Ghost Typing page
- crosslink the config-files `noEasterEggs.xml` mention with the command-line options and ghost-typing pages

see https://community.notepad-plus-plus.org/post/94945
  • Loading branch information
pryrt committed May 22, 2024
1 parent a021311 commit 7886807
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
2 changes: 1 addition & 1 deletion content/docs/config-files.md
Original file line number Diff line number Diff line change
Expand Up @@ -425,7 +425,7 @@ You can have multiple icon set directories; to switch between icon sets, you jus

- `noColumnToMultiSelect.xml`: This is a zero-byte file that is used as an indicator to Notepad++ to not enable the [column-mode to multi-edit conversion](../editing/#multi-editing) feature (new to v8.6.1). This file needs to be in `%AppData%\Notepad++\` for a normal installation and in the portable directory for a local configuration. Starting in v8.6.3, this zero-byte file was replaced by [**Settings > Preferences > Editing 2 > ☐ Enable Column Selection to Multi-Editing**](../preferences/#editing-2); if you used `noColumnToMultiSelect.xml` in v8.6.1-v8.6.2, to maintain the same behavior, you will need to make sure the new setting is not checkmarked; as of v8.6.3, this file is ignored and does nothing.

- `noEasterEggs.xml`: This is a zero-byte file that is used as an indicator to `notepad++.exe` to not show the "Easter Eggs" in the **About Notepad++** dialog (accessed from the **?** menu or the default keyboard shortcut <kbd>F1</kbd>). This config file _must_ go in the Notepad++ installation folder; it will not be recognized in the `%AppData%\Notepad++` hierarchy or in the cloud settings folder.
- `noEasterEggs.xml`: This is a zero-byte file that is used as an indicator to `notepad++.exe` to not show the "Easter Eggs" when trying to access the **About Notepad++** dialog (accessed from the **?** menu or the default keyboard shortcut <kbd>F1</kbd>). This config file _must_ go in the Notepad++ installation folder; it will not be recognized in the `%AppData%\Notepad++` hierarchy or in the cloud settings folder. You can find out more about the Easter Eggs in the [Command Line Options](../command-prompt/) and [Ghost Typing](../ghost-typing/) descriptions.

- `noRestartAutomatically.xml`: Starting in Notepad++ v8.5.8, Notepad++ is a [Restarable App](../other-resources/#restartable-app). If you would like to _disable_ Notepad++ from being restartable, add an empty config file called `noRestartAutomatically.xml` into `%APPDATA%\Notepad++\` (for normal installations) or the Notepad++ installation directory (for other configuration settings). If that file exists, and you'd like Notepad++ to be restartable again, just delete that file.

Expand Down
12 changes: 11 additions & 1 deletion content/docs/ghost-typing.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Ghost typing can be used to launch Notepad++ with an auto-typing text. Use comma

### Main Ghost Typing Modes

Use one of these three command-line options to enable the various modes of ghost typing.
Use one of these three [command-line options](../command-prompt/) to enable the various modes of ghost typing.

`notepad++.exe -qn="EasterEggName"`

Expand Down Expand Up @@ -61,3 +61,13 @@ These options apply to any of the ghost typing modes, unless otherwise mentioned
## Historical Syntax

The syntax listed above is valid for Notepad++ v8 and newer. If you have a v7.x version of Notepad++, please download the [last offline User Manual that contains Notepad++ v7.x details](https://github.com/notepad-plus-plus/npp-usermanual/releases/download/3.6/nppUserManual.zip)

## More on the Easter Eggs

As indicated above, the idea is that you go hunting for the Easter Eggs in the [source code](https://github.com/notepad-plus-plus/notepad-plus-plus/blob/master/PowerEditor/src/). However, that's a lot to search through, so you can reveal the spoilers below to narrow down the search space.

{{< details "Warning: Spoilers" >}}
[This file](https://github.com/notepad-plus-plus/notepad-plus-plus/blob/master/PowerEditor/src/Notepad_plus.cpp) might help you narrow down the search space. And if you [search the Community Forum](https://community.notepad-plus-plus.org/search?matchWords=all&in=titlesposts&showAs=posts&replies=&repliesFilter=atleast&timeFilter=newer&timeRange=&sortBy=timestamp&sortDirection=desc&term=Easter%20Eggs), you might be able to find a [list](https://community.notepad-plus-plus.org/topic/25803/an-updated-list-of-notepad-easter-eggs/ "Like Here") of Easter Eggs, but any such static list will eventually fall out-of-date.
{{< /details >}}

Aside from the command-line options above, you can also type the name of the Easter Egg in Notepad++, then select that name, then activate the **About Notepad++** dialog using the **?** menu or the default <kbd>F1</kbd> keyboard shortcut -- with the name selected, instead of actually opening the dialog, Notepad++ will create a new docuemnt tab, and will do the Ghost Typing for the selected Easter Egg name (or a random choice).

0 comments on commit 7886807

Please sign in to comment.