Created attachment 8680 Patch for described changes To be able to use Directory Menu plugin as a notes app I created additional menu items: 1. to create new folder 2. to create empty file User is asked for folder/file name and has possibility to open folder/file right after creating in default app. Both menu items can be disabled in preferences. The attached patch assumes, that patch in https://bugzilla.xfce.org/show_bug.cgi?id=15630 is applied as well.
Created attachment 9298 Patch updated with separator hiding Similarly to patch in https://bugzilla.xfce.org/show_bug.cgi?id=15630
I modified the dialog a bit to look more like Thunar's. I'm also wondering whether to look into enabling the creation of other document types, similar to Thunar's context menu. https://git.xfce.org/users/ochosi/xfce4-panel/log/?h=bug15639
(Note that the separator hiding is not yet merged into this branch. Also, please mark patches as obsolete when you upload new versions)
(In reply to Simon Steinbeiss from comment #2) Thank you for merging! > I'm also wondering whether to look into enabling the creation of other > document types, similar to Thunar's context menu. That sounds interesting. The problem I see here is that eventually 'action menu' of the plugin would take quite a bit of space. What I was thinking about is whether the 'action menu' could be displayed as a context menu on a right-click of file item (kind of context menu inception here :). That would give best UX compatibility with Thunar in my opinion. Unfortunately I recall reading somewhere that it is technically hard/impossible to do something like that in GTK. I can't remember source, but I may take a look at such possibility if you think it's a good idea. > (Note that the separator hiding is not yet merged into this branch. Also, please mark patches as obsolete > when you upload new versions) I'm not sure how to mark patch as obsolete. Is it by setting 'review' flag to '-' on that file?
In this case it would become a sub-menu. Otherwise I would try to make it clear that it's a *text*file. Regarding marking a patch as obsolete - you can only do that when uploading a new patch.
(In reply to Simon Steinbeiss from comment #5) > In this case it would become a sub-menu. Otherwise I would try to make it > clear that it's a *text*file. Somehow while replying in https://bugzilla.xfce.org/show_bug.cgi?id=15639#c4 I had some different menu on my mind, not Thunar's. I rechecked and actually Thunar uses submenu as you described. Sorry for the confusion caused. I'm not sure if it's worth creating submenu: * on the one hand submenu allows creation of different file types (though I don't have any templates on my system and I don't know if they are really that popular/used), * on the other submenu will introduce one additional click for creation of simple file and less efficient UX. What about leaving menu as it is now (only changing item name to "New text file" as you suggested) and see whether there will be any feature request for extended menu like in Thunar? Thanks for remark reg. patches.
cryptogopher referenced this bugreport in commit ab86c3c8a1c075b2a5ca4c70b7272ea36b301faf directorymenu: Add create folder/document menuitems (Bug #15639) https://git.xfce.org/xfce/xfce4-panel/commit?id=ab86c3c8a1c075b2a5ca4c70b7272ea36b301faf