Auto view/hide Project Manager when "Open with..."

Post Reply
User avatar
CoMPi
Posts: 7
Joined: 15.09.2016 15:49

Auto view/hide Project Manager when "Open with..."

Post by CoMPi »

Hi there,

I have two small suggestions. First, it would be nice to have possibility to open a folder in CudaText direct from file explorer (now only a file can be opened in this way). The second suggestion is to implement auto view/hide project manager depends on an argument type when a file/folder is opening with "Open with ..." from file explorer.

Best regards

Piotr
Alexey
Posts: 1633
Joined: 05.10.2012 22:10

Post by Alexey »

1. Posted this to shell-extension author- https://github.com/dinkumoil/cuda_shell ... ion/issues
2. maybe we need command line key like -side=1 (=0) , shell extension will use it?
User avatar
CoMPi
Posts: 7
Joined: 15.09.2016 15:49

Post by CoMPi »

I played a bit with command line and it looks like (almost) nothing must be done to implement my second suggestion (view/hide a project manager). Actually the project manager is already auto opened when CudaText is run with a folder name parameter (or one of parameters). The problem is that the state of the project manager (shown/hide) is stored and if CudaText is next opened with file name parameter the manager persists opened :/
I do not have Lazarus installed so I am not able to find the issue :/
Alexey
Posts: 1633
Joined: 05.10.2012 22:10

Post by Alexey »

It's not the issue, it's by design; app saves state of side panel visible. maybe we need cmd-line key like -side=1 (and =0) to show/hide it.
User avatar
CoMPi
Posts: 7
Joined: 15.09.2016 15:49

Post by CoMPi »

But what if a user prefer the side panel to be hidden all the time. Now, if CudaText is opened with Folder name parameter, the panel will be visible and will remain visible until the user changes it. This is against the user's decision. Also cmd-line key, like proposed above, will not change it.
Maybe showing/hiding the sidebar panel, in such scenario, should be treated as a temporary action? What do you think of it?
Alexey
Posts: 1633
Joined: 05.10.2012 22:10

Post by Alexey »

I added option

//Side-panel's visible state on program start
// 0: Restore state from history file
// 1: Show
// 2: Hide, plugins can show panel if needed
"ui_sidepanel_on_start": 0,

Pls test,
http://uvviewsoft.com/c/
User avatar
CoMPi
Posts: 7
Joined: 15.09.2016 15:49

Post by CoMPi »

Works as expected and completely meets my expectations :) I don't need anything else :)

Thank you Alexey :)
Alexey
Posts: 1633
Joined: 05.10.2012 22:10

Post by Alexey »

Reply from shell-extension author (github):

Aside from the fact that I don't have any time to work on the shell extension, it's worth to say that at least under Windows 10 v1909 Prof. the context menu of a folder already contains an Open with CudaText entry. If one clicks on it, CudaText opens and adds the selected folder to the project manager side panel.

Thus, changing the shell extension in a manner that it would send the paths of all files contained in a folder instead of the folder path itself to CudaText would break the functionality mentioned above. Or do I miss something?
Post Reply