summaryrefslogtreecommitdiff
path: root/doc/classes
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2022-11-14 23:26:05 +0100
committerRémi Verschelde <rverschelde@gmail.com>2022-11-14 23:26:05 +0100
commit0332f04e979bcc9cd3cdfbffe64871944f3018df (patch)
treeaebd22be5213314453646673f235fcaa28b0aa54 /doc/classes
parent7a9a173a9f048c7faa8d6768e0134899f080df56 (diff)
parent4b00c2ec57317d71c8e1b217952715c1b6006648 (diff)
Merge pull request #60931 from EspeuteClement/get_selected_files
Add EditorInterface.get_selected_paths()
Diffstat (limited to 'doc/classes')
-rw-r--r--doc/classes/EditorInterface.xml12
1 files changed, 9 insertions, 3 deletions
diff --git a/doc/classes/EditorInterface.xml b/doc/classes/EditorInterface.xml
index bb319cb5a3..5d4b83bc27 100644
--- a/doc/classes/EditorInterface.xml
+++ b/doc/classes/EditorInterface.xml
@@ -48,6 +48,12 @@
[b]Warning:[/b] Removing and freeing this node will render a part of the editor useless and may cause a crash.
</description>
</method>
+ <method name="get_current_directory" qualifiers="const">
+ <return type="String" />
+ <description>
+ Returns the current directory being viewed in the [FileSystemDock]. If a file is selected, its base directory will be returned using [method String.get_base_dir] instead.
+ </description>
+ </method>
<method name="get_current_path" qualifiers="const">
<return type="String" />
<description>
@@ -131,10 +137,10 @@
[b]Warning:[/b] Removing and freeing this node will render a part of the editor useless and may cause a crash.
</description>
</method>
- <method name="get_selected_path" qualifiers="const">
- <return type="String" />
+ <method name="get_selected_paths" qualifiers="const">
+ <return type="PackedStringArray" />
<description>
- Returns the path of the directory currently selected in the [FileSystemDock]. If a file is selected, its base directory will be returned using [method String.get_base_dir] instead.
+ Returns an array containing the paths of the currently selected files (and directories) in the [FileSystemDock].
</description>
</method>
<method name="get_selection">