Nice and easy to implement feature - 2
Advanced programmer's code editor written in Tcl/Tk
Brought to you by:
phase1geo
I discovered a nice feature of TKE: when TKE get a directory as an argument (wish tke.tcl DIRNAME) it opens the DIRNAME in the sidebar.
It would be cool if the directory were selected in the sidebar at that.
The same proposal is for "Open Recent" -> "Recent Directories".
As a matter of fact, you have a similar feature already. When you call the popup menu of current tab and select "Show in Sidebar" the file is selected in the sidebar.
Though, "Open Recent" -> "Recent Files" might be left unchanged. The directories are good to be shown (and selected) in the sidebar, files are good to be shown (and selected) in the tabs.
Shortly, consider this from your point of view. Some example is on the video.
... add also "File / Open Directory" to the consideration.
I have made this change in the default branch.
"File/Open Directory"
"File/Open Recent" -> "Recent Directories".
- both work fine.
"wish tke.tcl DIRNAME"
- still the same (puts DIRNAME in the sidebar and does not select it).
It's a pity.
Hmm... I made the change to select a directory when added via the command-line and verified that it worked last night.
Indeed, when TKE isn't working, the passing it a directory works fine.
However, while working, TKE gets the passed directory OK, shows it in the sidebar OK, but fails to select it in the sidebar :( FAILED
Okay, I missed the case where a directory is specified on the command-line while TKE is already running. I have fixed that in the default branch.
works fine
Available in the 3.6 release.