News for hackers. Stuff that matters.
Re:Show HN: Khoj – Chat Offline with Your Second Brain Using... by LanternLight83 on Sunday July 30, 2023 @03:05PM (#36934770)
It's funny that you mention `C-s`, because `isearch-forward` is usually used for low-latency literal matches. In what workflow can Khoj offer acceptable latency or superior utility as a drop-in replacement for isearch? Is there an example of how you might use it to navigate a document?
Re:Show HN: Khoj – Chat Offline with Your Second Brain Using... by 110 on Sunday July 30, 2023 @03:29PM (#36935011)
That's (almost) exactly what khoj search provides a search-as-you-type experience but with a natural language (instead of keyword) search interface.

My workflow looks like: 1. Search with Khoj search[1]: `C-c s s` <search-query> RET 2. Use speed key to jump to relevant entry[2]: with `n n o 2`

[1]: `C-c s` is bound to `khoj` transient menu [2] https://orgmode.org/manual/Speed-Keys.html

Re:Show HN: Khoj – Chat Offline with Your Second Brain Using... by Blackthorn on Sunday July 30, 2023 @10:51PM (#36938295)
Can you elaborate on that a little bit? When you search like that, what do you type in to find stuff in a programming language source file? I'd like to better understand this workflow, it seems interesting and I might be missing out.
Re:Show HN: Khoj – Chat Offline with Your Second Brain Using... by 110 on Monday July 31, 2023 @07:18PM (#36950213)
Firstly, my previous statement needs quite a lot of clarification:

Khoj works more like an incremental, natural language version of org-agenda-search (or projectile) rather than isearch.

You've to configure which files it should index first. You can then use natural language to search those files with a search-as-you-type experience.

This is not the same as isearch that just searches the current file for keyword matches.

Second, khoj doesn't index source code and the default search models don't work well with code files.

But yeah someone should implement a natural language isearch as a standalone tool (as suggested by parent comment). It'd be super-useful