coderaiser / cloudcmd

✨☁️📁✨ Cloud Commander file manager for the web with console and editor.
https://cloudcmd.io
MIT License
1.83k stars 257 forks source link

Feature Request: Inverted colour selector & default start-up directory #275

Open mackonsti opened 4 years ago

mackonsti commented 4 years ago

Hello @coderaiser and many thanks for cloudcmd !

I have installed it on my OMV 4.x system natively (outside docker) using a Node.js 10.x installation just before Cloud Commander. Followed tips and guide on "Debian Server" threads on-line.

I would like to ask if these two features are to be requested or exist already as I have not found a reference on your main page:

1) Inverted colour selector Just like Midnight Commander or Total Commander, it would be great for the line-selector to appear in inverted colour. I am so used to it that it facilitates greatly to immediately see where the selector is.

2) Default start-up directory I was hoping to get a parameter to define the start-up directories (for both panes) to be something else besides / on the browser. I was hoping to find some parameter that defines the launch or startup directory to show. Does this exist already?

For example, for a Debian service created on OMV to always start Could Commander as as systemd service, I defined the user/group that is allowed to run this feature and wanted to complement it by starting at the user's home directory /home/user/ or some other like /sharedfolders/ for example.

Thanks for listening! Keep up the great work. Best regards.

coderaiser commented 4 years ago

Hell @mackonsti ,

  1. If I understand you right, you can just press * key to invert selection.
  2. You can set root directory using env variable CLOUDCMD_ROOT or --root option:
    cloudcmd --root /home/user/ 

Is it helps?

mackonsti commented 4 years ago

Hi @coderaiser thank you very much for your fast reply.

  1. So if I set CLOUDCMD_ROOT or --root would this be just the start-up directory when I (re-)launch the service or would this be the top-level possible to access by the user on the browser? I mean, if I set CLOUDCMD_ROOT=/home/mackonsti/ would this be just the start-up directories on both panels or the maximum allowed navigation in the file system possible? (i.e. cannot go further up in /home/ for example).

  2. Thank you for the asterisk option, no I mean colour-wise (CSS) like an inverted colour selector that would be more visible instead of the red outline of the selection.

This is the perfect example I found on-line to illustrate: http://i.imgur.com/I946dek.jpg

On the left, is your current CSS method, on the right is an alternative (option) selector method (with inverted colours).

Thank you!

coderaiser commented 4 years ago

Ok, I understood what are you talking about :).

  1. There is no such an option as startup directory.
  2. No inverted selection as well.

Anyways that’s a good idea for a pull request :).

mackonsti commented 4 years ago

Thanks, @coderaiser for your confirmation. Unfortunately I cannot be much of a help, as I am not a programmer. Hopefully someone will like the idea of inverted colours in the selection line and apply the correct CSS or even make it an option in Settings. Have a good week and thanks for your work on Cloud Commander.

coderaiser commented 4 years ago

@mackonsti thank you for a good ideas with improvements, you also have a good week :)