Giter VIP home page Giter VIP logo

findrun's People

Contributors

yesseri avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

anborg

findrun's Issues

Implement fuzzy search

It should be possible to give a flag, -f or --fuzzy to get fuzzy search results. This will of course be a much more expensive and slow operation and should therefore not be default.

Possible Crate to use - Fuzzy-matcher

File opens in background instead of foreground on Windows 10

I have found a bug in the interaction between crossterm and the crate open, which is used to open files and urls in their default programs.

In this minimal example the file gets opened in the background instead of the foreground, at least on Windows 10.

use crossterm::event::{poll, read, Event, KeyCode};
use std::time;

fn main() {
	loop {
		if poll(time::Duration::from_millis(1_000)).unwrap() {
			let event = read().unwrap();
			if event == Event::Key(KeyCode::Esc.into()) {
				break;
			}
			open::that("C:/Programming/rust/rust-in-action/Rust-In-Action.pdf").unwrap();
		}
	}
}

If the open::that statement is placed outside the if statement the file gets opened once per second as expected and wanted in the foreground. This means there is some kind of bug in the interaction between the crossterm functions and open crate.

Any thoughts and all help is welcome.

Implement Regex search

Similar to the fuzzy search there should be a possibility to search with Regex. It should use the flag -r and --regex.

Possible Crate to use - Regex crate

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.