Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Search is not easy and no copy button? #2506

Open
slrslr opened this issue May 13, 2024 · 6 comments
Open

Search is not easy and no copy button? #2506

slrslr opened this issue May 13, 2024 · 6 comments

Comments

@slrslr
Copy link

slrslr commented May 13, 2024

Hello,

What i i expect:

i would expect to have a tray icon by default (i suspect i had to enable it in a Misc. settings).
Then i would expect a search field where i can type and it will instantly filter out matching nodes and using single mouse click i can copy the node content and it would optionally minimize the CherryTree for pasting into other app.

It is not present (in CT 0.99.30 on Debian 11 oldstable):

  • I am unsure if i have seen tray icon by default
  • Regarding search, Ctrl+F seems to be the search in current node, not in all nodes (i see i can modify keyb. shortcuts), when i type into a search window and hit enter, it does nothing (i think that the Enter should initiate search, Shift+Enter does, yet that is a bit too complicated), then on search results window, i would expect Enter key would bring me to the resulting node. No, i have to hit Esc key.
  • Regarding copying content of the node, i do not see a button for that, the Edit menu shows Shift+Ctrl+C too long shortcut, which does not insert anything into the clipboard despite my cursor is inside a node with text content.

Conclusion:

So this app does not seem to be enough usable for the purpose of quickly finding node containing defined text and copy it into another app. Can you please improve something?

@slrslr slrslr changed the title No one-click tray icon and a Search is not easy and no copy button? Search is not easy and no copy button? May 13, 2024
@gitvectors
Copy link

gitvectors commented May 13, 2024

I can search through hundreds of archived CherryTree (*.ctd) documents in my Ubunti desktop and find all containing keyword and open them. It is not clear if you want to copy the searched keyword or the entire node content containing the keyword. Just think of "toolchains". In my case CherryTree plus Recoll. But it sounds like you want to access snippets. There are a number of co-tools / packages which offer that. Sublime Text for one, or VS Code. And Albert is good. For all these I use a CherryTree document as a "desktop node" connecting to other tools. There is no need to add new features to CherryTree.

P.S. You can also introduce snippets into CodeBoxes. And on Run CodeBox , the (e.g. Python generated) Snippet is loaded into ClipBoard for example. Or posted somewhere. This feature is often overlooked.

@slrslr
Copy link
Author

slrslr commented May 13, 2024

@gitvectors

if you want to copy the searched keyword or the entire node content

I have written "copying content of the node" so i think it was clear what i wanted to copy (node).

Albert

Thank you for your app suggestions. Albert does not seem to do what i have described in my first paragraph. I am really a layman who does not understand "desktop node" connecting to other tools ... CodeBoxes but you do not need to explain it may be a bit OT. Thank you.

@gitvectors
Copy link

I was readng your conclusion - "quickly finding node containing defined text and copy". But never mind.

Firstly, this test exercise helped me to unearth an elusive node. Thanks.

Now .. it is true that Search > Find in Multiple Nodes does not provide a direct means of copying full content of any node containg Search > Find term.

You can click on the highlighted node in list to bring node into focus.

Then Right Click > Select All (highlight node content).

Then Ctrl+C to copy [highlighted node content] to Clipboard.

Then pass Clipboard content to whatever external app(s) in mind.

But this is a clumsy workflow which is why I try to automate steps.

Now there is a simple tool which might help.
SearchMonkey (in Ubuntu repo).

We can use an expression to search all files with extension ctd.

It is quicker if you narrow down the folders to be specific rather than entire desktop. I sense that you are using just one or a few CT documents rather than many as I have,

@lbpth
Copy link

lbpth commented May 16, 2024

Agree.
Beside that, the search function in CTree is not good enough at performance if comparing with fuking Electron apps like Ntion/Cap*cities though those apps are not good at performance/ response overall.

I also hope dev team can improve this function because we are using app for note-taking. It means we create data everyday and the CTB/CTD file size will increase day by day. The more data, the slower search function is.

@gitvectors
Copy link

Unless you breakup your large CTD documents into multiple CTD documents. Then use Recoll indexer as I suggested.

@giuspen
Copy link
Owner

giuspen commented Jun 4, 2024

The speed of search is much better now than it was in v0.99.30, you should upgrade as I pointed out in the other ticket.
Also in v0.99.30 it was not possible to select/copy the text while the search result dialog is still open, now that is possible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants