Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Integrate into context menu of file managers #112

Open
4 tasks
nikoksr opened this issue Mar 10, 2020 · 3 comments
Open
4 tasks

Integrate into context menu of file managers #112

nikoksr opened this issue Mar 10, 2020 · 3 comments

Comments

@nikoksr
Copy link
Collaborator

nikoksr commented Mar 10, 2020

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

  • Add option to context menus cross-platform
    • Linux
    • macOS
    • Windows
  • Add lightweight interactive GUI to create new projects

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

@nikoksr nikoksr changed the title Proji in right click menu of file managers Integrate into right click menus of file managers Mar 10, 2020
@ssivaguru
Copy link

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
Copy link
Collaborator Author

nikoksr commented May 15, 2020

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:

  • Support for Linux, Mac and Windows. They should all support this feature but of course the implementation for this is absolutely different from platform to platform.
  • In addition, on Linux, the implementation seems to vary depending on the DE or file manager, as you mentioned earlier too.
  • Specifying a project name. It will probably be relatively easy with a little know-how to add a small drop-down or something like that to this menu which lists all available classes from which you can easily choose what you want. What is missing is the possibility to specify a project name, which is of course essential.
  • Dealing with scripts. It is also quite likely that a class will run scripts that may need interaction (see git-script). One possibility would be that clicking on a script would either open an interactive console or add a minimal gui that lets the user interact with the scripts. I am not satisfied with either of these solutions.

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.

@nikoksr nikoksr changed the title Integrate into right click menus of file managers Integrate into context menu of file managers May 15, 2020
@gedw99
Copy link

gedw99 commented Jun 8, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants