giuspen / cherrytree

cherrytree
https://www.giuspen.net/cherrytree/
Other
3.29k stars 457 forks source link

Add show / hide option to show in status bar full path of selected node #2525

Open ratra1 opened 3 weeks ago

ratra1 commented 3 weeks ago

Can you please add show / hide option to show in status bar full path of selected node.

So for selected node in status bar to be shown something like: root/node_1/sub_node_of_node_1/...

gitvectors commented 3 weeks ago

I raised a similar question here. https://github.com/giuspen/cherrytree/issues/730 I didn't follow up the idea to hack the CherryTree source code. Instead I wrote a Python script in a CodeBox (placed in the node) to find the absolute path to the selected node.

giuspen commented 2 weeks ago

But the full path to the selected node is also shown on the node name header, isn't that enough?

image

ratra1 commented 2 weeks ago

But the full path to the selected node is also shown on the node name header, isn't that enough?

Yes. But I would like to see the path to selected node when Tree Explorer is hidden. Anyway the app is great as it is and this is just a suggestion for future.

gitvectors commented 2 weeks ago

"But the full path to the selected node is also shown on the node name header, isn't that enough?"

Consider a CodeBox inside the node where a Python (or other) script requires to parse the content of that node. How does the Python script refer to that node?

giuspen commented 2 weeks ago

But the full path to the selected node is also shown on the node name header, isn't that enough?

Yes. But I would like to see the path to selected node when Tree Explorer is hidden. Anyway the app is great as it is and this is just a suggestion for future.

But the node name header with the full path to node is not in the tree explorer, it is above the text, look at the top right in the screenshot example for b / sh / html

giuspen commented 2 weeks ago

"But the full path to the selected node is also shown on the node name header, isn't that enough?"

Consider a CodeBox inside the node where a Python (or other) script requires to parse the content of that node. How does the Python script refer to that node?

This is a different matter, you would like to support code executed in a node with for example environmental variables that expose node name or else... it is a fair request but this should go to another ticket along with description of a practical case / test example