Page 1 of 1

Lock Tab behaviour

Posted: 2018-03-11, 00:11 UTC
by mohammadsj
When I lock a tab using "Locked, but directory change allowed", my expected/desired behavior is being allowed to go to the sub-folders but NOT the parent folder. Currently, TC, allows to change to both sub-folders and parent directory, so what is the point of locking a tab?

Posted: 2018-03-11, 10:16 UTC
by HolgerK
The point is to set a fixed path always when activating the tab again.

But nothing against additional locked behaviors:
(_) unlocked
(_) locked
(_) locked, but directory change allowed
(_) locked, but directory change to sub folders allowed
(o) locked, but directory change to sub folders allowed +remember last folder during this session
(_) locked, but directory change to sub folders allowed +remember last folder over sessions

Thinking about this, one of the last options would be my personal preferred setting:
- Activating the tab will not change the current path;
- only "\" will go to the locked path root.

I guess it would not even need additional fields in
[left/righttabs] section, only an additional value in subfield F of
n_options=A|B|C|D|E|F|G

BTW: what is the meaning of subfield G (didn't find an explanation so far in help or forum)

Regards
Holger

Posted: 2018-03-11, 10:27 UTC
by HolgerK
HolgerK wrote:(_) unlocked
(_) locked
(_) locked, but directory change allowed
(_) locked, but directory change to sub folders allowed
(o) locked, but directory change to sub folders allowed +remember last folder during this session
(_) locked, but directory change to sub folders allowed +remember last folder over sessions
This could be part of the "Rename/Lock Tab" dialog and resolve a little UI inconvenience by using radio buttons or a combo box instead of the currently used 2 check buttons for a 1 out of 3 selection.

Regards
Holger

Posted: 2018-03-13, 20:57 UTC
by mohammadsj
In my opinion, you are over-complicating it.

This is my use case: I have a folder named [download]. I frequently work in it. so I want to keep it always as one of my tabs when I start TC. In addition, I wan to be able to go into sub-folders I have in int. Obviously, when I active/deactive the tab, I want it preserve the current path not to reset to anything.

so below option will be the most useful:

(_) locked, but directory change to sub folders allowed

Posted: 2018-03-13, 21:14 UTC
by HolgerK
mohammadsj wrote:Obviously, when I active/deactive the tab, I want it preserve the current path not to reset to anything.
I may be wrong, but this is one of the following:
(o) locked, but directory change to sub folders allowed +remember last folder during this session
(_) locked, but directory change to sub folders allowed +remember last folder over sessions
Overcomplicated? Or didn't you check the current behavior (activate resets to the root path)?

Regards
Holger

Posted: 2018-03-15, 04:41 UTC
by mohammadsj
I'm okay with anything you suggest as long as my requirement is satisfied. hope the developer consider this request.

Thanks for participation :)

Re:

Posted: 2020-06-07, 14:53 UTC
by ducmans
mohammadsj wrote: 2018-03-13, 20:57 UTC
so below option will be the most useful:

(_) locked, but directory change ONLY to sub folders allowed
I second that, have been looking for a way to do that as well.

By the way a workaround is to use the 'subst' command to map a drive to the top of that folder.

Thanks for a great program, Jean