proji-rocks / proji

A powerful cross-platform project templating tool.
MIT License
203 stars 12 forks source link

Integrate into context menu of file managers #112

Open nikoksr opened 4 years ago

nikoksr commented 4 years ago

Is your feature request related to a problem? Please describe. To ease the usage of proji even more we might integrate it into the right click (context) menus of a big variety of file managers. This includes file managers on linux, macOS and windows.

What is a context menu? Context menu example

Describe the solution you'd like When you click the empty space in a file manager and click the right mouse button to create a new folder or file for example, there should also be an option thats called proji - create project (this name is obviously open for debate). When clicking this option a small window should open containing a class dropdown to choose a class, a text field for the project name, a create/confirm/go button and a cancel button. When clicking this option a console window should open, asking for the class and project name. It's necessary to run this in terminal since the class may execute scripts that require user interaction.

To-Do

Additional context If anyone has ever done something like this or knows how to tackle this problem, help would be greatly appreciated.

ssivaguru commented 4 years ago

In Linux kde(plasma 5) you can add a desktop file to service menu and it will work (https://techbase.kde.org/Development/Tutorials/Creating_Dolphin_Service_Menus). for gnome i think adding in script folder should work(never have done for gnome)..

nikoksr commented 4 years ago

Hi @ssivaguru, thanks for your contribution!

I myself am also a pure linux user and came to the same conclusion as you. So help with the implementation on Mac and Windows would be very welcome.

The problems I currently see in implementing this feature and which require a solution are:

Currently this feature seems to bring more problems and complexity than benefit. Therefore this feature will be put on hold for the time being. But if someone has an elegant solution for these problems, we can discuss it here and work on the implementation.

gedw99 commented 1 year ago

this is a great idea !!

for windows i saw that you can easily do it using the registry. https://learn.microsoft.com/en-us/windows/win32/shell/reg-shell-exts

https://github.com/dwmkerr/sharpshell/tree/main is a .net code base but its a good reference. see the docs.

for mac i am not sure right now.