Skip to main content

Index stuff and find it fast and without bloat

Project description

An awesome hack. Your friendly finding ninja.

Usage

Index and find your stuff.

Index the current directory.

finja --index

Find huhu in the index.

finja huhu

Update outdated files and find huhu in the index.

finja -u huhu

Also works from a subdirectory.

finja --index
cd submdir
find huhu

Tip: If you are sure that your system survives till everything is indexed use eatmydata.

eatmydata finja -i

Raw mode is meant for machines, but you can replace the \0 with colons.

finja -r huhu | finjacol

Get reduplicated raw human readable output.

finja -r eatmydata | finjadup | finjacol

Get reduplicated raw output.

finja -r eatmydata | finjadup

Index git files only.

git ls-tree -r --name-only master > FINJA.lst
finja -i

Filter unwanted output by path.

finja -p spamfolder gold

Cleanup free (unused) tokens and rebuild the database.

finja --vacuum

If there are some badly formatted files that seriously cramp your style.

finja readlines for | cut -c -`tput cols`

Thats it and it works.

Caveat: We do not support languages that don’t do spaces nor interpunct. Hey we are not google!

Installation

If you’re using Arch Linux, there’s an AUR package here: https://aur.archlinux.org/packages/finja-git/

On other platforms, use python’s package manager, pip:

pip install -U git+https://github.com/adfinis-sygroup/finja.git

Why?

Unlike many of the great alternatives to finja, finja is generic. It doesn’t know what it is indexing. Finja achieves good indexing quality by doing multiple passes with different tokenization methods and splitting character lists. Therefore it is slower and has a bigger index than non-generic indexers, but it just indexes your stuff and won’t miss any files it doesn’t know about.

Finja is doing something wrong, can I customize the settings?

We would like to keep settings to a minimum. At the moment there is only international interpunct, that can be switched on. Please open an issue on Github and describe your problem, we will try to find a generic solution. If we don’t find such a solution we might add a setting.

By dv@winged.ch and ganwell@fangorn.ch

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

finja-1.0.tar.gz (11.4 kB view details)

Uploaded Source

File details

Details for the file finja-1.0.tar.gz.

File metadata

  • Download URL: finja-1.0.tar.gz
  • Upload date:
  • Size: 11.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for finja-1.0.tar.gz
Algorithm Hash digest
SHA256 3795d64d6e3905f33aff28b659010b03f78f4d25188871966ddcc68b3d871548
MD5 d1402bdbdd38a5bcbc33b665d95d15c2
BLAKE2b-256 8f68073bead3dc39f15dff44fef56af655d051e2af752621ee2799a35b18daca

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page