Rémi Verschelde
79da448d5f
Merge pull request #94582 from citizenll/feat_context_menu_plugin4.x
...
Add support for custom items to editor right-click context menus
2024-09-03 16:13:47 +02:00
citizenl
6b2348adac
Add support for custom items to editor right-click context menus
2024-09-03 20:14:14 +08:00
Aaron Franke
9dd71c6414
ResourceImporterScene: Replace animation bool with an import type string enum
2024-08-27 14:58:18 -07:00
Rémi Verschelde
955f1535c0
Merge pull request #94703 from fstxz/fix_get_selected_paths
...
Fix `EditorInterface.get_selected_paths()` working incorrectly when FileSystemDock is in split mode
2024-08-19 14:33:48 +02:00
Artemy Fedotov
b55e97cd85
Fix `EditorInterface.get_selected_paths()` working incorrectly when FileSystemDock is in split mode
2024-08-17 19:31:15 +04:00
Giganzo
36c9d31a9e
Fix huge tscn icon in FileSystem split mode using list view
2024-08-08 11:59:14 +02:00
Rémi Verschelde
d4b7ede882
Merge pull request #92303 from Hilderin/fix-synchronization-global-class-name
...
Fix synchronization of global class name
2024-06-28 14:42:37 +02:00
Hilderin
39369db029
Fix synchronization of global class name
2024-06-25 18:33:07 -04:00
Hugo Locurcio
c1cd8633a6
Add default keyboard shortcuts to various actions in the FileSystem dock
...
Some of these shortcuts are inspired by Visual Studio Code's defaults.
- Ctrl + Alt + C: Copy Absolute Path
- Ctrl + Alt + Shift + C: Copy UID
- Ctrl + Alt + R: Open in File Manager
- Ctrl + Alt + E: Open in External Program
- Ctrl + Alt + T: Open in Terminal
- Note: On Linux distributions that have Ctrl + Alt + T as a default
shortcut to open a terminal, the system shortcut takes priority
over this one.
The "Open Containing Folder in Terminal" text was shortened so that
the context menu doesn't become too wide with the default shortcut
annotations.
2024-06-25 00:51:45 +02:00
jsjtxietian
e22a444235
Update import dock when select resource in resource panel
2024-06-24 12:41:00 +08:00
Rémi Verschelde
31f3969c86
Merge pull request #93147 from Hilderin/fix-freeze-after-save
...
Fix noticeable freeze after saving a scene
2024-06-21 10:14:18 +02:00
Hilderin
8ac841a026
Fix Noticeable freeze after saving a scene #93104
2024-06-20 16:47:28 -04:00
kobewi
c981e8b765
Don't rescan filesystem when adding new directory
2024-06-20 00:46:14 +02:00
A Thousand Ships
fbb879debd
[Scene] Add `SceneStringNames::text/value_changed`
2024-06-19 09:44:38 +02:00
A Thousand Ships
ca18a06ecb
[Scene] Add `SceneStringNames::confirmed`
2024-06-19 09:40:54 +02:00
Rémi Verschelde
e4fa8543ea
Revert "Fix FileSystem dock won't show any file folders"
...
This reverts commit 72856d633a .
Fixes #93022 .
2024-06-11 11:46:35 +02:00
Hilderin
72856d633a
Fix FileSystem dock won't show any file folders
2024-06-10 19:54:37 -04:00
Hilderin
81395cf9bd
Fix Huge .tscn Icon and icon in background of File System panel
2024-06-02 09:11:56 -04:00
A Thousand Ships
926afccbd8
[Scene] Add `SceneStringNames::panel`
2024-05-30 22:54:50 +02:00
A Thousand Ships
755a0efbb6
[Scene] Add `SceneStringNames::id_pressed`
2024-05-30 22:54:04 +02:00
Rémi Verschelde
d489d4aa24
Merge pull request #90570 from timothyqiu/at-last
...
Rearrange "Open In" menu items of FileSystem dock
2024-05-29 22:13:40 +02:00
Thaddeus Crews
5d265e9a7e
SCons: Minor fixes/adjustments for web compilation
2024-05-24 12:30:24 -05:00
bruvzg
7d4d63b807
Fix Tree and FileSystemList edit popup double events and ESC behavior.
2024-05-17 10:03:52 +03:00
A Thousand Ships
ee79386f7b
[Scene] Add SceneStringNames::pressed
2024-05-14 15:51:28 +02:00
kobewi
413c11357d
Use Core/Scene stringnames consistently
2024-05-13 23:41:07 +02:00
Rémi Verschelde
ea552e1067
Merge pull request #91471 from aaronp64/filesystemdock_previews
...
Fix `FileSystemDock` thumbnails sometimes not displaying
2024-05-11 12:38:15 +02:00
A Thousand Ships
a0dbdcc3ab
Replace `find` with `contains/has` where applicable
...
* Replaces `find(...) != -1` with `contains` for `String`
* Replaces `find(...) == -1` with `!contains` for `String`
* Replaces `find(...) != -1` with `has` for containers
* Replaces `find(...) == -1` with `!has` for containers
2024-05-08 12:37:42 +02:00
Pedro J. Estébanez
eb2bd41fb8
Make handling of rename line-edit popups more robust
2024-05-07 14:29:35 +02:00
Rémi Verschelde
e63252b421
Merge pull request #90705 from AThousandShips/foreach_list
...
Reduce and prevent unnecessary random-access to `List`
2024-05-07 09:04:44 +02:00
A Thousand Ships
955d5affa8
Reduce and prevent unnecessary random-access to `List`
...
Random-access access to `List` when iterating is `O(n^2)` (`O(n)` when
accessing a single element)
* Removed subscript operator, in favor of a more explicit `get`
* Added conversion from `Iterator` to `ConstIterator`
* Remade existing operations into other solutions when applicable
2024-05-04 16:08:55 +02:00
A Thousand Ships
62c9a99ee3
[Editor] Don't open `AnimationLibrary` as a scene
2024-05-03 18:27:27 +02:00
aaronp64
831a085f67
Fix FileSystemDock thumbnails sometimes not displaying
...
There were (at least) three cases where thumbnails would not display, if they were generated while the FileSystemDock was not visible:
- current_path == "Favorites", due to p_path not starting with "Favorites"
- current_path == "res://", due to current_path having last "/" trimmed for comparison
- current_path pointing to a selected file instead of folder, since it no longer matches p_path's base directory
This change removes the current_path and is_visible_in_tree checks when determining whether to update the file's icon.
Fixes #90801
Fixes #91432
2024-05-02 13:05:53 -04:00
kobewi
0904378515
Remove code duplication for adding global script class
2024-05-01 00:26:42 +02:00
Rémi Verschelde
69a94c5e27
Merge pull request #77069 from KoBeWi/turning_tooltips_into_music_player_BECAUSE_WHY_NOT
...
Add tooltip plugin for AudioStream
2024-04-26 15:12:54 +02:00
Rémi Verschelde
ce539e559b
Merge pull request #91158 from Arnklit/show-in-filesystem-favorites
...
Add show in filesystem option for file favorites
2024-04-26 11:08:47 +02:00
Kasper Frandsen
ca2005f658
Add show in filesystem option for file favorites
2024-04-26 09:02:53 +01:00
Rémi Verschelde
3acd14d6bc
Merge pull request #88660 from MajorMcDoom/tokenized-file-search
...
Add tokenized search support to Quick Open dialog and FileSystem filter
2024-04-19 16:26:50 +02:00
Rémi Verschelde
c1efd37e3b
Merge pull request #90829 from timothyqiu/remove-sub-color
...
Fix folder color not cleared for removed subfolders
2024-04-18 12:24:59 +02:00
Zi Ye
fbfda46ffa
Added tokenized search support to Quick Open dialog and FileSystem filter.
2024-04-17 21:12:55 -05:00
Haoyu Qiu
4efaeefaec
Fix folder color not cleared for removed subfolders
2024-04-18 10:08:20 +08:00
Muller-Castro
c8ef9e6955
Fix folder colors not present in editor dir dialog
2024-04-16 16:21:49 -03:00
kobewi
1fce8d8a91
Add tooltip plugin for AudioStream
2024-04-15 22:14:21 +02:00
Haoyu Qiu
2ef69642af
Rearrange Open In menu items of FileSystem dock
2024-04-13 10:11:46 +08:00
kobewi
a064ca16a8
Fix folder colors not saving after project.godot is modifed externally
2024-04-12 13:22:46 +02:00
Christian Feuz
5c1d1ea620
Add option to copy absolute path in file system dock popup
2024-04-09 22:04:39 +02:00
Rémi Verschelde
3c4c79c65a
Merge pull request #89803 from timothyqiu/xfce4-terminal
...
Add necessary flags when opening directory with xfce4-terminal
2024-04-09 10:42:27 +02:00
Rémi Verschelde
554c0af5d4
Merge pull request #90186 from Maran23/error-when-rename-move
...
Fix errors when renaming/moving/deleting global scripts
2024-04-06 13:06:32 +02:00
Marius Hanl
dda06a8209
Fix errors when renaming/moving/deleting global scripts
...
When renaming or moving global scripts, the following errors can appear:
- Attempt to open script 'xxx' resulted in error 'File not found'.
- Failed loading resource: xxx. Make sure resources have been imported by opening the project in the editor at least once.
- Parser Error: Class 'xxx' hides a global script class.
When deleting scripts, errors appear when opening the 'Create Node Dialog' as the script cache still contains the removed global scripts. The following errors can appear:
- Attempt to open script 'xxx' resulted in error 'File not found'.
- Failed loading resource: xxx. Make sure resources have been imported by opening the project in the editor at least once.
editor/create_dialog.cpp:241 - Condition "scr.is_null()" is true.
All this errors can be fixed by correctly handling the cases. They involves removing the old path and adding the new one (if not deleted) to the ScriptServer. This is somewhat similar if the file is moved or deleted outside Godot and detected by the file watcher, but more specialized for this particular usecase, since we know the old and the new path / correctly know what the user just did.
2024-04-05 18:52:15 +02:00
AlexOtsuka
0ccc34d351
Fix FileSystemDock behavior when dropping an item in the current folder
2024-04-04 20:19:29 +02:00
Rémi Verschelde
05372773e1
Merge pull request #89599 from timothyqiu/vegetate
...
Fix unexpected auto translation of editor `Tree` content
2024-03-23 21:15:39 -07:00
Rémi Verschelde
993ce36933
Merge pull request #89658 from AThousandShips/dock_terminal
...
[Editor] Add `Open in Terminal` to the file system empty click
2024-03-24 01:20:43 +01:00
Rémi Verschelde
dd668530e6
Merge pull request #89642 from permelin/fix-favorite-icon
...
Resource file not found error when loading Favorite icon
2024-03-24 01:20:16 +01:00
Rémi Verschelde
7761c04265
Merge pull request #89546 from YeldhamDev/bad_fsdock,_bad!
...
Fix FileSystem dock auto translating files
2024-03-24 01:17:41 +01:00
Rémi Verschelde
ae8d43b0bb
Merge pull request #88003 from kitbdev/dock-manager-fixes
...
Refactor and fix issues in Editor Dock Manager
2024-03-24 01:13:26 +01:00
Haoyu Qiu
7984043768
Add necessary flags when opening directory with xfce4-terminal
2024-03-23 20:41:44 +08:00
A Thousand Ships
2cbf469912
Fix sorting of files/dirs in dialogs
...
Sorts leading `_` before other characters except `.`.
2024-03-20 13:45:47 +01:00
A Thousand Ships
fa60e2ddb0
[Editor] Add `Open in Terminal` to the file system empty click
...
Was missing from clicking in the empty file list
2024-03-19 12:05:05 +01:00
Per Melin
ae6410b622
Resource file not found error when loading Favorite icon
2024-03-18 21:39:26 +01:00
Haoyu Qiu
8cd1ebbd6d
Fix unexpected auto translation of Tree content
2024-03-18 09:31:00 +08:00
kit
0c9c84f7a6
Refactor and fix issues in Editor Dock Manager
...
Extract Dock Context Menu.
2024-03-16 13:51:31 -04:00
Michael Alexsander
b926e51998
Fix FileSystem dock auto translating files
2024-03-15 23:58:45 -03:00
Rémi Verschelde
5cf38f8f99
Merge pull request #77932 from KoBeWi/custom_resources_to_kill_performance_again_probably
...
Fix custom resource icons in FileSystem
2024-03-14 22:34:17 +01:00
bruvzg
fee14eb5e8
[Import] Add "skip file" import option to skip (and exclude from export) importable formats, auto set it for the images used by bitmap font.
2024-03-12 21:34:40 +02:00
kobewi
a62ccf3f1a
Fix custom resource icons in FileSystem
2024-03-08 22:31:15 +01:00
Hugo Locurcio
4f8d7cae26
Add Ctrl + L / Cmd + Shift + G shortcut to focus path bar in FileDialog
...
This also tweaks EditorFileDialog to use the same shortcut,
while making it select the path text after focusing
(like in most file managers).
Ctrl + L / Cmd + Shift + G can also now be used to focus on the
property name in the project settings editor, as well in the
Input Map, Autoload, Shader Globals and Global Groups tabs.
2024-03-05 00:02:09 +01:00
Muller-Castro
1638c1b28f
Add const lvalue ref to editor/* container parameters
2024-02-26 15:28:15 -03:00
Haoyu Qiu
9c63a5222d
Don't translate filenames in FileSystem dock
2024-02-24 01:00:01 +08:00
kobewi
aeec3c1309
Add methods to add submenus without using names
2024-02-22 15:13:53 +01:00
Rémi Verschelde
9e9dcdbba4
Merge pull request #86378 from RobProductions/update-hover-styling
...
Add hover highlight to main editor buttons
2024-02-20 19:34:40 +01:00
Rémi Verschelde
6037500219
Merge pull request #69032 from KoBeWi/check_every_changed_setting_in_every_group_everywhere()
...
Use `check_changed_settings_in_group()` everywhere
2024-02-20 19:34:30 +01:00
kobewi
bb461986ba
Add separate program case for Godot Resources
2024-02-19 22:46:25 +01:00
kobewi
a031911c82
Use check_changed_settings_in_group() everywhere
2024-02-19 21:34:45 +01:00
Rémi Verschelde
1bd8fc53fb
Merge pull request #88191 from YeldhamDev/filesys_options_icon_hl
...
Use highlighted version of the tab icon in the bottom file system dock
2024-02-17 00:23:11 +01:00
Matt Enad
5b5de0e167
Add hover highlight to main editor buttons
...
Updates styling of the editor run bar, plugin, bottom panel, icon buttons, and main menu buttons for accessibility.
2024-02-16 14:49:44 -05:00
Martin Capitanio
8e8f8e92fb
FileSystem dock: Fix open a terminal
...
The previous implementation of opening a terminal
in the FileSystem dock was causing errors due to the use
of a bash builtin command that does not work outside the shell.
This resulted in the following error messages:
ERROR: Could not create child process: command
at: execute (drivers/unix/os_unix.cpp:553)
ERROR: Could not create child process: command
at: execute (drivers/unix/os_unix.cpp:553)
...
To resolve this issue,
+ the command is now executed inside a bash shell,
+ if the `terminal_emulator_flags` editor option is empty,
the working directory for gnome-terminal and urxvt is now properly set.
2024-02-14 14:29:03 +01:00
Rémi Verschelde
907db8eebc
Merge pull request #87563 from jsjtxietian/fix-filesystem-infinite
...
Fix editor will freeze when modifying filesystem filter path in Split Mode
2024-02-14 14:08:08 +01:00
Michael Alexsander
cc52d7a281
Use highlighted version of the tab icon in the bottom file system dock
2024-02-11 00:09:59 -03:00
kobewi
4ad74a5663
Some editor code cleanup
2024-01-30 21:33:31 +01:00
Juan Linietsky
000367893a
Ability to move FileSystem dock to bottom
...
* Allows moving the filesystem dock to the bottom
* Added ability to drag resources across bottom docks
2024-01-29 15:15:38 +01:00
jsjtxietian
650b9d62e4
Fix editor will freeze when modifying filesystem filter path in Split Mode
2024-01-29 11:04:06 +08:00
Rémi Verschelde
33f3511241
Merge pull request #87293 from YuriSizov/editor-theme-a-rehashed-follow-up
...
Improve editor theme generation after the refactor
2024-01-18 16:34:50 +01:00
Yuri Sizov
d92d8a49aa
Merge pull request #86064 from jsjtxietian/fix-sort-by-type
...
Fix "Class name cannot be empty" error when sorting no import files sort by type
2024-01-17 18:52:35 +01:00
Yuri Sizov
45eedba1fa
Improve editor theme generation after the refactor
2024-01-17 15:16:53 +01:00
Yuri Sizov
95b27fe8c7
Reorganize code related to editor theming
...
This change introduces a new EditorThemeManager class
to abstract theme generatio and its subroutines.
Logic related to EditorTheme, EditorColorMap, and editor
icons has been extracted into their respective files with
includes cleaned up.
All related files have been moved to a separate folder to
better scope them in the project. This includes relevant
generated files as well.
2024-01-16 11:57:45 +01:00
Rémi Verschelde
039379d272
Merge pull request #84193 from kitbdev/dock-manager-extract
...
Extract `EditorDockManager` from `EditorNode`
2024-01-16 10:35:11 +01:00
kit
2323f040e9
Extract editor dock manager
2024-01-15 15:15:42 -05:00
Rémi Verschelde
85a918d5a2
Merge pull request #87121 from jsjtxietian/fix-thumbnail-disappear
...
Fix thumbnail disappears if FileSystemDock is floated
2024-01-15 13:30:40 +01:00
jsjtxietian
57751b1917
Fix thumbnail disappears if FileSystemDock is floated
2024-01-13 01:15:37 +08:00
jsjtxietian
5b57db2637
Fix "Class name cannot be empty" error when sorting no import files by type
2024-01-10 10:39:21 +08:00
kobewi
0e8f90f4c8
Update deferred calls to use Callables
2024-01-09 16:11:47 +01:00
Aaron Franke
9753a35c76
Move 3D scene import classes to their own folder
2024-01-04 11:02:49 -06:00
Rémi Verschelde
6c390b620d
Merge pull request #84445 from Rubonnek/add-const-references-clang-tidy
...
Add const references detected by clang-tidy
2024-01-04 14:25:33 +01:00
Rémi Verschelde
00cc23f906
Merge pull request #86486 from timothyqiu/move-copy-dialog
...
Improve `EditorDirDialog`
2024-01-03 15:47:52 +01:00
Vedat Gunel
f35f1a1849
Store horizontal and vertical split offsets separately in FileSystem dock
2023-12-25 18:11:18 +03:00
Haoyu Qiu
a42ead59da
Improve EditorDirDialog
...
* Automatically selects the newly created directory
* Automatically selects "res://" when nothing is selected
* Fixes an error when overwrite/replace dialog appears
* Changes "copy checkbox + action button" to "copy button + move button"
* Double clicking a directory (un)collapses it instead of copy/move
* Uses DirectoryCreateDialog for "Create Folder"
2023-12-25 19:14:04 +08:00
Yuri Sizov
13d34d6a2b
Merge pull request #85923 from Calinou/editor-filesystem-dock-add-open-in-terminal
...
Add a editor FileSystem dock action to open a terminal in selected folder
2023-12-22 17:19:53 +01:00
Hugo Locurcio
0e97acff84
Add a editor FileSystem dock action to open a terminal in selected folder
...
This is useful to enter some commands without having to open a separate
terminal and `cd` to the project folder.
2023-12-19 15:04:02 +01:00
Wilson E. Alvarez
a3cb1b096f
Add const references detected by clang-tidy
2023-12-16 13:36:44 -05:00
kobewi
0ae1241304
Properly select the newly duplicated file
2023-12-14 19:49:11 +01:00
Yuri Sizov
8f33b4e83a
Merge pull request #84882 from Invertex/select-instance-asset
...
Add "Show In FileSystem" to the Scene hierarchy right-click
2023-12-14 17:38:30 +01:00