mirror of
https://github.com/TECHNOFAB11/tmux-copyrat.git
synced 2025-12-12 16:10:07 +01:00
refactor: refactor
This commit is contained in:
parent
0e0e581f86
commit
d2d3e812fc
5 changed files with 7 additions and 8 deletions
|
|
@ -17,8 +17,8 @@ duct = "0.13"
|
|||
|
||||
[[bin]]
|
||||
name = "copyrat"
|
||||
path = "src/main.rs"
|
||||
path = "src/bin/copyrat.rs"
|
||||
|
||||
[[bin]]
|
||||
name = "tmux-copyrat"
|
||||
path = "src/tmux_copyrat.rs"
|
||||
path = "src/bin/tmux_copyrat.rs"
|
||||
|
|
|
|||
|
|
@ -2,9 +2,7 @@ use clap::Clap;
|
|||
use std::collections::HashMap;
|
||||
use std::str::FromStr;
|
||||
|
||||
use copyrat::{error, output_destination::OutputDestination, selection::Selection, CliOpt};
|
||||
|
||||
mod tmux;
|
||||
use copyrat::{error, output_destination::OutputDestination, selection::Selection, tmux, CliOpt};
|
||||
|
||||
/// Main configuration, parsed from command line.
|
||||
#[derive(Clap, Debug)]
|
||||
|
|
@ -11,6 +11,7 @@ pub mod output_destination;
|
|||
pub mod process;
|
||||
pub mod regexes;
|
||||
pub mod selection;
|
||||
pub mod tmux;
|
||||
pub mod ui;
|
||||
|
||||
/// Run copyrat on an input string `buffer`, configured by `Opt`.
|
||||
|
|
|
|||
|
|
@ -4,8 +4,8 @@ use std::collections::HashMap;
|
|||
use std::fmt;
|
||||
use std::str::FromStr;
|
||||
|
||||
use copyrat::error::ParseError;
|
||||
use copyrat::process;
|
||||
use crate::error::ParseError;
|
||||
use crate::process;
|
||||
|
||||
#[derive(Debug, PartialEq)]
|
||||
pub struct Pane {
|
||||
|
|
@ -241,7 +241,7 @@ pub fn swap_pane_with(target_pane: &str) -> Result<(), ParseError> {
|
|||
mod tests {
|
||||
use super::Pane;
|
||||
use super::PaneId;
|
||||
use copyrat::error;
|
||||
use crate::error;
|
||||
use std::str::FromStr;
|
||||
|
||||
#[test]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue