You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Working on a plugin right now that can create multiple file system trees, including tabs with pinned directories. The big hurdle had been making it as functional as the built in dock.
I have been working on kind of a wrapper for the context menu that I can then forward commands back to the FileSystem Dock. So far I have almost everything working, but there are a few snags, particularly actions that don't have a dialog.
I can't get renaming to work smoothly. I was able to do a work around where I manipulate the renaming LineEdit text and emit the text_submitted signal, but it throws an error if the FileSystem Dock is not visible, due to forcing the LineEdit to focus. I then tried moving the FileSystem Dock around in the tree, which worked, but it started to get much too janky.
Moving files by drag and drop, I have no idea how to forward the command. I can drag from my tree to the FileSystem tree and it triggers the move operation, I can get all the correct information on my side, but I just can't trigger it.
The reason I want to do it through FileSystem is so that all the dependencies will be updated properly.
Would it be possible to expose some of these methods in GDScript for direct access? Or if anyone has some ideas of a workaround I'd love to hear your thoughts.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hi all,
Working on a plugin right now that can create multiple file system trees, including tabs with pinned directories. The big hurdle had been making it as functional as the built in dock.
I have been working on kind of a wrapper for the context menu that I can then forward commands back to the FileSystem Dock. So far I have almost everything working, but there are a few snags, particularly actions that don't have a dialog.
I can't get renaming to work smoothly. I was able to do a work around where I manipulate the renaming LineEdit text and emit the text_submitted signal, but it throws an error if the FileSystem Dock is not visible, due to forcing the LineEdit to focus. I then tried moving the FileSystem Dock around in the tree, which worked, but it started to get much too janky.
Moving files by drag and drop, I have no idea how to forward the command. I can drag from my tree to the FileSystem tree and it triggers the move operation, I can get all the correct information on my side, but I just can't trigger it.
The reason I want to do it through FileSystem is so that all the dependencies will be updated properly.
Would it be possible to expose some of these methods in GDScript for direct access? Or if anyone has some ideas of a workaround I'd love to hear your thoughts.
Thanks!
Here's a pic of how the wrapper menu looks:
Beta Was this translation helpful? Give feedback.
All reactions