first pass of merging in warp (doesn't build)

This commit is contained in:
Ryan Ward
2026-07-01 16:08:58 -05:00
parent 2f64909469
commit 4770ac06b5
3662 changed files with 414574 additions and 89772 deletions
@@ -1,6 +1,7 @@
use anyhow::Result;
use std::path::PathBuf;
use anyhow::Result;
fn main() -> Result<()> {
let args: Vec<String> = std::env::args().collect();
+3 -1
View File
@@ -10,8 +10,10 @@ mod types;
/// searching if the main Warp process has exited.
#[cfg(unix)]
pub fn monitor_parent_and_exit_on_change(parent_pid: Option<u32>) {
use std::thread;
use std::time::Duration;
use nix::unistd::Pid;
use std::{thread, time::Duration};
let expected_parent = match parent_pid {
Some(pid) => Pid::from_raw(pid as i32),
+3 -5
View File
@@ -1,13 +1,11 @@
use std::ops::Not;
use std::path::PathBuf;
use anyhow::anyhow;
use grep::printer::JSONBuilder;
use grep::regex::RegexMatcherBuilder;
use grep::{
printer::JSONBuilder,
searcher::{BinaryDetection, SearcherBuilder},
};
use grep::searcher::{BinaryDetection, SearcherBuilder};
use ignore::{WalkBuilder, WalkState};
use std::ops::Not;
use string_offset::ByteOffset;
/// Maximum line length (in bytes) the ripgrep searcher will tolerate.