1
0
Fork 0
Commit Graph

669 Commits

Author SHA1 Message Date
Ozelot Vanilla 94669955d8 fix: EditorContextMenuPlugin CONTEXT_SLOT_FILESYSTEM_CREATE does not receive path information for some menu
Also add explanation in `EditorContextMenuPlugin`'s doc for fixing path information passing

(Accept PR #106820 suggestion by: Tomasz Chabora <kobewi4e@gmail.com>)
2025-06-02 15:37:12 +09:00
Thaddeus Crews bdf03ac2b3
Merge pull request #106811 from OzelotVanilla/fix-editor-plugin-filesystem-create
Fix missing popup item defined in `EditorContextMenuPlugin` with slot `CONTEXT_SLOT_FILESYSTEM_CREATE`
2025-05-27 09:39:24 -05:00
Ozelot Vanilla 14d9aa9672 fix: EditorContextMenuPlugin with slot CONTEXT_SLOT_FILESYSTEM_CREATE does not add popup item to all menu
As there are multiple menu containing creating new files, this commit add the popup menu item from the plugin to all those menu to keep consistency.
The fixing uses empty array to indicate different types of context menu.

Added to these menu:
* Right-click on empty space on the tree (`_tree_empty_click`).
* Right-click on empty space on the file panel (`_file_list_empty_clicked`)

Also add explanation in `EditorContextMenuPlugin::CONTEXT_SLOT_FILESYSTEM_CREATE`'s doc for previous fixing

(Accept PR #106811 code suggestion by: Tomasz Chabora <kobewi4e@gmail.com>)
2025-05-27 10:15:21 +09:00
Thaddeus Crews 34fc2c1bb6
Merge pull request #106339 from Ryan-000/Run-EditorScript-from-FileSystemDock
Allow running EditorScripts from the FileSystemDock
2025-05-26 11:24:41 -05:00
Ryan e3db0d62a8 Allow running EditorScripts from the FileSystemDock
Apply suggestions from code review

Co-Authored-By: Tomasz Chabora <kobewi4e@gmail.com>
2025-05-24 00:04:07 -04:00
Thaddeus Crews 8e744e65b8
Merge pull request #106049 from nklbdev/fix-set-focus-on-right-control-on-user-action-show-in-file-system
Fix Set focus on right control on user action "show in file system"
2025-05-19 16:22:24 -05:00
BrotherShort a52a7a4a48 Make the position and the size of FileSystem controls more precise 2025-05-11 00:31:49 +08:00
kobewi 5dd4267a0b Unify shortcut handling in FileSystem dock 2025-05-05 22:37:29 +02:00
nklbdev 66faae4d83 Fix Set focus on right control on user action "show in file system" 2025-05-03 09:19:12 +05:00
nklbdev 767e037726 Fix added missing shortcuts from tree to file list 2025-05-02 00:23:33 +05:00
Rémi Verschelde 694d034d5b
Rename editor "File" MenuOption enums for clarity 2025-04-30 16:32:11 +02:00
Rémi Verschelde c019b76523
Remove WinAPI `#undef` hacks needed for mingw-std-threads
Instead, we rename the conflicting symbols.
2025-04-29 14:24:03 +02:00
Pāvels Nadtočajevs 7dc8daf176
[FileSystemList] Fix edit popup not accounting scroll position. 2025-04-14 12:11:15 +03:00
Thaddeus Crews 94282d88f9
Core: Use `Math` namespace for constants 2025-04-10 16:29:30 -05:00
Yufeng Ying f7e4987d0e Dictionary::get_key_list use LocalVector instead of List. 2025-04-09 02:46:24 +08:00
Pāvels Nadtočajevs 302fa831cc
Initial editor accessibility. 2025-04-08 20:25:48 +03:00
Thaddeus Crews 4f8c90ae61
Merge pull request #104789 from jaydensipe/fix-textfile-class-error
Fix `Cannot get class` error when searching `TextFile`/`OtherFile` in FileSystem dock
2025-04-07 08:43:29 -05:00
Jayden Sipe 1066e83262 Fix `Cannot get class` error when searching `TextFile`/`OtherFile` 2025-04-06 20:51:40 -04:00
Yufeng Ying 4f4031a675 Replace size() == 0 with is_empty(). 2025-04-02 19:18:43 +08:00
Rémi Verschelde 3b90bb56ad
Merge pull request #89782 from KoBeWi/stdArrayList
Use initializer list in Arrays
2025-03-28 17:29:40 +01:00
kobewi 75881f8322 Use initializer list in Arrays 2025-03-26 18:38:15 +01:00
kobewi ede1f8ef7e Improve auto-translation for static strings in docks 2025-03-26 14:09:38 +01:00
Rémi Verschelde 09988ae22b
Revert "Add option to copy a file's name in the FileSystem dock"
This reverts commit 2569416881.
2025-03-21 12:07:03 +01:00
Rémi Verschelde 9f67aeaae8
Merge pull request #104022 from precup/create_directory_fix
Defend against directories without trailing slashes
2025-03-19 12:27:07 +01:00
Mike Precup 9de4efa451 Defend against directories without trailing slashes 2025-03-16 15:27:42 -07:00
Rémi Verschelde 3751a4a026
Merge pull request #103734 from KoBeWi/catch_fokus_200
Re-grab FileSystem focus after rescan
2025-03-14 00:08:41 +01:00
Lars Pettersson d2d02d0ea8
EditorNode: Add function to load file as scene or resource 2025-03-12 23:59:48 +01:00
Thaddeus Crews 3eeaa56abb
Merge pull request #96536 from YeldhamDev/copy_file_name
Add option to copy a file's name in the FileSystem dock
2025-03-11 14:00:49 -05:00
Thaddeus Crews 8b64454436
Merge pull request #103762 from KoBeWi/unload_reload
Remove unused Reload button
2025-03-11 09:35:00 -05:00
kobewi 018eccdfd3 Remove unused Reload button 2025-03-07 15:08:50 +01:00
A Thousand Ships 5113022dfe
Clean up some uses of `String::substr`
Cases where the end position is either equvalent to the default or past
the end of the string.
2025-03-07 14:50:38 +01:00
kobewi 9dcf720f50 Re-grab FileSystem focus after rescan 2025-03-07 00:30:39 +01:00
Michael Alexsander 2569416881
Add option to copy a file's name in the FileSystem dock 2025-02-16 20:05:22 -03:00
Agustín Marsero 2ba64a57c5 Fix Global Class names cache not saved with upgrade to 4.4.
Co-authored-by: Hilderin <81109165+Hilderin@users.noreply.github.com>
2025-02-12 18:33:38 +01:00
Rémi Verschelde 08f22c890d Merge pull request #102714 from KoBeWi/ninja_tree_items_on_their_way_to_break_your_selection
Don't select invisible items in FileSystem dock
2025-02-11 23:59:26 +01:00
kobewi ac1d4f2bec Don't select invisible items in FileSystem dock 2025-02-11 16:20:31 +01:00
kobewi 0cffaf788b Navigate to folder when double-clicking favorite 2025-02-08 20:47:47 +01:00
Jordyfel 4391d88c1a Fix regression in moving resources in filesystem dock 2025-02-06 19:10:44 +02:00
Thaddeus Crews d5eacefaf4
Merge pull request #102336 from Maran23/show-in-filesystem-fix
Fix 'Show in FileSystem' jumps to incorrect entry under certain conditions
2025-02-04 09:04:07 -06:00
Marius Hanl f0ae69ed8e Fix 'Show in FileSystem' jumps to incorrect entry under certain conditions 2025-02-02 20:59:07 +01:00
kobewi 46d8231e63 Remove unnecessary rescan after copying file 2025-02-01 18:51:14 +01:00
Thaddeus Crews c019f3d4a5
Merge pull request #102049 from timothyqiu/editor-i18n
Fix several i18n issues in editor
2025-01-27 09:46:15 -06:00
Haoyu Qiu 4c4f29a490 Fix several i18n issues in editor 2025-01-26 16:41:10 +08:00
kobewi b761ff662e Rework script external modification tracking 2025-01-16 01:03:26 +01:00
Aarni Koskela f134769506 Fix various typos
* Add TODO notes for typos that should be fixed for 5.0

Co-authored-by: Rémi Verschelde <rverschelde@gmail.com>
2025-01-08 14:47:42 +02:00
Rémi Verschelde 1639174455 Merge pull request #100558 from KoBeWi/docking_in_progress
Rework dock layout management
2025-01-07 23:17:27 +01:00
Rémi Verschelde 7bbdcc802b Merge pull request #100419 from KoBeWi/times_before_search_were_better
Fix folders uncollapsed after restart with filter
2025-01-07 23:17:18 +01:00
Lars Pettersson e492ddde12
Don't scroll to selected file in FileSystem when saving scenes 2025-01-03 16:29:00 +01:00
alessand10 e330b79397
Fix root folder logic in the filesystem 2025-01-02 17:50:58 +01:00
kobewi b8f34bb8e9 Rework dock layout management 2024-12-18 20:36:19 +01:00