emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: One vs many directories


From: Jean Louis
Subject: Re: One vs many directories
Date: Sun, 22 Nov 2020 20:55:43 +0300
User-agent: Mutt/2.0 (3d08634) (2020-11-07)

* briangpowell <briangpowellms@gmail.com> [2020-11-22 05:48]:
> Emacs, believe it or not, has the FASTEST ENGINE available, without
> augmentation in any way, for INTERACTIVE SEARCH--since the whole engine is
> designed to be optimized to search-while-editing

Interesting, I did not know about that.

> But for many other searches, more elaborate searches, fancier GREP
> searches, it's a VERY BAD choice of ways or programs to use for
> searching

Do you mean to run grep on file or buffer while editing?

Or outside of editor?

> What I mean is, say you're editing a file, and you search for your
> "ProviderBuilderFactory"
> 
> Suggest you try opening a huge file--even MULTI-GIGABYTE FILES--huge files
> in Emacs VLF-Mode--Very Large File-mode {which I believe can be done as a
> sub-mode to/with Org-Mode}
> 
> And you can do this fearlessly since vlf-mode works by dividing the files
> up for you in the background, etc.--while you're editing--but uses the same
> built-in Emacs engine, optimized for such searches
> 
> And then you type:
> 
> Control-s
> 
> And start to type the first letters of "ProviderBuilderFactory"
> 
> This will interactive-search HUGE files, very quickly, and in near "Real
> Time"--since this is what Emacs (implemented in C) is optimized to do--its
> optimized for initial-character-searching "as you type them"--most other
> engines are NOT

Does occur also uses that built-in speedy search? Would it work with
your library? Now I am researching it and I see vlf-occur

I have tried using vlf-occur in this email and what happened seems to
be error:

- M-x vlf-occur
- Tried with word "has"
- found many "has" in vlf-occur
- I press RET on the line there
- I get asked "Chunk modified, are you sure?" I say yes.
- my email buffer is erased at that moment and cursor switches to erased buffer
- then to undo stuff I press undo

So that is bug. User should never get buffer erased.

> IF FOR NO OTHER REASON THAN IT SOUNDS LIKE FUN! And you might use
> vlf-mode for other tasks you may face in the future.

I am interested to research the possibility of expanding large number
of database items into the file which would then be hyperlinked. Would
some mode like Org mode work with it? I would use Hyperbole or Org
links or goto-address-mode

The file would be one liner expansion of database entries.

By using quick vlf-occur (at this moment I just imagine it is quick,
but do not have a feeling) I would quickly locate some entries.

I would then click or activate the button to move to specific other
database entries or outside hyperlinks.

> Lastly, say you want to search for things without opening a file, you can
> still use Emacs in batch-mode, at the command line, without opening a full
> emacs session

Provide the one line to understand it.

Side thought: I remember I was making website search engines back in
time with grep only. Each HTML file was converted to one line of text,
something like:

LOCATION:::TITLE:::KEYWORDS:::DESCRIPTION:::HERE COMES LONG LINE OF BODY

Then grep was used to quickly find results which are formatted on the
website page. And yet we can just find complex software for website
searching on Internet these days.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]