Treebrowser has "open with glade" feature for .ui and .glade files in this fork. Tested on Ubuntu 16.04 LTS 64 bit and Windows 10 64bit (msys - mingw64). You can view, comment on, or merge this pull request online at:
https://github.com/geany/geany-plugins/pull/789
-- Commit Summary --
* open with glade feature for .ui and .glade files
-- File Changes --
M treebrowser/src/treebrowser.c (36)
-- Patch Links --
https://github.com/geany/geany-plugins/pull/789.patch https://github.com/geany/geany-plugins/pull/789.diff
Do we want to add "Open with XY" for many different tools here? Why is opening a file Glade in any way special? Next someone wants to add "Open with Firefox", then "Open with Gimp", then "Open with Foo", ...
Maybe a more generic approach like using "xdg-open" with a generic "Open" action is the better way?
Maybe a more generic approach like using "xdg-open" with a generic "Open" action is the better way?
"Open Externally" or such then, because I would expect the first action is to open it in Geany :smile: -- well, for text files at least.
I thought glade is in gnome ecosystem and it deserves a special action for opening glade files. Such as, intellij has "open in scenebuilder" feature for *.fxml files of javafx.
Glade may be in the Gnome ecosystem, but Geany is not. Geany is a somewhat portable application that uses GTK.
Ok guys. I agrree with you more generic approach would fit a wide range of requirements. Please forgive my ignorance daring a pull request for this. I am new to all gtk stuff, and I could not find a customizable behavior for opening those files using glade within geany. I know treebrowser has this: executable "%f", however It sets opening action for all extension types. May be it is my fault to unable to discover a pre-existing feature. I am open to get informed.
@aferust pushed 1 commit.
6eb1ecd any kinda file extension can be assoc. with custom execs
Now, users can associate files with any executable like: geany:.glade;geany:.ui;notepad:.txt:winamp:mp3 or whatever else I hope everbody is happy now :)
codebrainz commented on this pull request.
@@ -62,8 +62,11 @@ static gboolean flag_on_expand_refresh = FALSE;
# define CONFIG_OPEN_TERMINAL_DEFAULT "cmd" #endif
+# define CONFIG_OPEN_EXT_USER_DEF_DEFAULT "notepad++:.txt;glade:.ui;glade:.glade"
The first default here seems unusual...
@aferust pushed 1 commit.
ac3866a CONFIG_OPEN_EXT_USER_DEF_DEFAULT fix
aferust commented on this pull request.
@@ -62,8 +62,11 @@ static gboolean flag_on_expand_refresh = FALSE;
# define CONFIG_OPEN_TERMINAL_DEFAULT "cmd" #endif
+# define CONFIG_OPEN_EXT_USER_DEF_DEFAULT "notepad++:.txt;glade:.ui;glade:.glade"
fixed!
@aferust pushed 1 commit.
5222963 clearer readme, menu item pos fix
@aferust pushed 1 commit.
d2d05d1 entry has been expanded to display longer settings
@aferust: I can resolve the conflicts if you like because they come from my PR #864. Doing that will change your PR and branch ```aferust:master```.
@LarsGit223 : Yes, please go for it. I almost forgot that I did this PR a while ago. I am not sure what to do, I am not an expert on git system. Please tell me if you need me to do something.
@LarsGit223 pushed 1 commit.
b064d8cd3bacbfee70064081c402b3ff822b8f46 Merge branch 'master' into master
@aferust: done, you don't need to do anything.
@medovina: your the maintainer of treebrowser - have a look to maybe.
github-comments@lists.geany.org