diff --git a/CHANGELOG.md b/CHANGELOG.md index ed0fc4de..c78b0d8c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -18,6 +18,7 @@ The **"Breaking Changes"** listed below are changes that have been made in the d - The window sizes and positions of the tileset editor, palette editor, and region map editor are now stored in `porymap.cfg`. - Add ruler tool for measuring metatile distance in events tab (Right-click to turn on/off, left-click to lock in place). - Add delete button to wild pokemon encounters tab. +- Add ability to specify preferred text editor commands in `Options -> Edit Preferences`. These allow `Open Map Scripts` to open directly to the script for the currently selected event, and to open the project root directory in a text editor directly from porymap. ### Changed - Holding `shift` now toggles "Smart Path" drawing; when the "Smart Paths" checkbox is checked, holding `shift` will temporarily disable it. diff --git a/docsrc/manual/editing-map-events.rst b/docsrc/manual/editing-map-events.rst index 7837d48d..e950e4e3 100644 --- a/docsrc/manual/editing-map-events.rst +++ b/docsrc/manual/editing-map-events.rst @@ -225,7 +225,7 @@ Respawn NPC Open Map Scripts ---------------- -Clicking the ``Open Map Scripts`` button |open-map-scripts-button| will open the map's scripts file in your default text editor. If nothing happens when this button is clicked, you may need to associate a text editor with the `.inc` file extension. +Clicking the ``Open Map Scripts`` button |open-map-scripts-button| will open the map's scripts file in your default text editor. If nothing happens when this button is clicked, you may need to associate a text editor with the `.inc` file extension (or `.pory` if you're using Porycript). `Alternatively`, you may specify a preferred text editor command in *Options -> Edit Preferences*. By specifying a text editor like this you can allow Porymap to open the scripts file directly to the script of the currently selected event. .. |open-map-scripts-button| image:: images/editing-map-events/open-map-scripts-button.png diff --git a/docsrc/manual/settings-and-options.rst b/docsrc/manual/settings-and-options.rst index 9b055226..84c01e20 100644 --- a/docsrc/manual/settings-and-options.rst +++ b/docsrc/manual/settings-and-options.rst @@ -31,6 +31,8 @@ determined by this file. ``monitor_files``, 1, global, yes, Whether porymap will monitor changes to project files ``region_map_dimensions``, 32x20, global, yes, The dimensions of the region map tilemap ``theme``, default, global, yes, The color theme for porymap windows and widgets + ``text_editor_goto_line``, , global, yes, Optional command that will be executed when clicking ``Open Map Scripts``. + ``text_editor_open_directory``, , global, yes, The command that will be executed when clicking ``Open Project in Text Editor``. ``base_game_version``, , project, no, The base pret repo for this project ``use_encounter_json``, 1, project, yes, Enables wild encounter table editing ``use_poryscript``, 0, project, yes, Whether to open .pory files for scripts diff --git a/docsrc/manual/shortcuts.rst b/docsrc/manual/shortcuts.rst index 0acd894d..2cea79a2 100644 --- a/docsrc/manual/shortcuts.rst +++ b/docsrc/manual/shortcuts.rst @@ -33,6 +33,7 @@ Main Window Open New Tileset Dialog, ``Ctrl+Shift+N`` Open Tileset Editor, ``Ctrl+T`` Open Region Map Editor, ``Ctrl+M`` + Edit Preferences, ``Ctrl+,`` .. csv-table:: :header: Map Editing