bn-l / thsearch Goto Github PK
View Code? Open in Web Editor NEWContent searching of documents (just for fun)
Content searching of documents (just for fun)
The second argument defaults to thsearch.txt and should allow for a relative (to the binary) or absolute path.
This will allow something like this:
thsearch something books
And an alternate books.txt configuration file next to the binary will search all books and look like this example:
+C:\ebooks\
>.epub
An error should be given if the file can't be found.
Parser checks for a new line type. E.g.:
~node_modules
and if this is in any part of a candidate file's path, the file is rejected.
Instead of looking for candidate files on each run do the following:
A progress bar on the command line implemented in ascii. E.g.:
[======··············] 60%
Should be easy implement by watching the ConcurrentQueue
Runs as a background task
User can set maximum memory use. More recent files are given priority in the index.
Embedded binaries (images etc) can be linked to (for a future GUI version)
Index is stored as a reverse index:
Downsides:
Reproduce:
Make sure folders that throw a read error are skipped
Using a custom string contains (e.g. expanding the one in Searcher) to do fuzzy matching of a query stem to a db stem or a string distance algorithm.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.