Replies: 2 comments 3 replies
-
Plugins have access to the MainWindow so you could try creating a Services.Document from the file and then call the |
Beta Was this translation helpful? Give feedback.
2 replies
-
If you make and submit a draft PR it will be easier to investigate. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi I'm trying to add a fuzzy search (see my branch here) and the concept is really working well for now.
I'm now at the point where I want to open a file which was selected by the fuzzy finder (see
plugins/fuzzy-search/fuzzy-search.vala line 80
). Butopen_file
from the interface can't open the file because it says the file is corrupt (it isn't!).If the selected file is already open the editor will crash.
Can somebody guide me here how to programmatically open a file from a plugin? I'm kind of lost.
I'm getting following segmentation fault when opening the file:
Beta Was this translation helpful? Give feedback.
All reactions