rename filetree crate to prepare for publish

This commit is contained in:
Stephan Dilly 2021-05-28 11:10:11 +02:00
parent bfa83ae343
commit 032948f01a
15 changed files with 13 additions and 13 deletions

4
Cargo.lock generated
View File

@ -373,7 +373,7 @@ dependencies = [
]
[[package]]
name = "filetree"
name = "filetreelist"
version = "0.1.0"
dependencies = [
"pretty_assertions",
@ -478,7 +478,7 @@ dependencies = [
"crossterm",
"dirs-next",
"easy-cast",
"filetree",
"filetreelist",
"itertools",
"lazy_static",
"log",

View File

@ -21,7 +21,7 @@ keywords = [
[dependencies]
scopetime = { path = "./scopetime", version = "0.1" }
asyncgit = { path = "./asyncgit", version = "0.16" }
filetree = { path = "./filetree" }
filetreelist = { path = "./filetreelist", version = "0.1" }
crossterm = { version = "0.19", features = [ "serde" ] }
clap = { version = "2.33", default-features = false }
tui = { version = "0.15", default-features = false, features = ['crossterm', 'serde'] }
@ -66,7 +66,7 @@ timing=["scopetime/enabled"]
members=[
"asyncgit",
"scopetime",
"filetree",
"filetreelist",
]
[profile.release]

View File

@ -45,12 +45,12 @@ fmt:
clippy:
touch src/main.rs
cargo clean -p gitui -p asyncgit -p scopetime -p filetree
cargo clean -p gitui -p asyncgit -p scopetime -p filetreelist
cargo clippy --workspace --all-features
clippy-nightly:
touch src/main.rs
cargo clean -p gitui -p asyncgit -p scopetime -p filetree
cargo clean -p gitui -p asyncgit -p scopetime -p filetreelist
cargo +nightly clippy --workspace --all-features
check: fmt clippy test

View File

@ -1,15 +1,15 @@
[package]
name = "filetree"
name = "filetreelist"
version = "0.1.0"
authors = ["Stephan Dilly <dilly.stephan@gmail.com>"]
edition = "2018"
description = "filetree abstraction based on a sorted path list"
description = "filetree abstraction based on a sorted path list, supports key based navigation events, folding, scrolling and more"
homepage = "https://github.com/extrawurst/gitui"
repository = "https://github.com/extrawurst/gitui"
readme = "README.md"
license-file = "LICENSE.md"
categories = ["command-line-utilities"]
keywords = ["gui","cli","terminal","ui"]
keywords = ["gui","cli","terminal","ui","tui"]
[dependencies]
thiserror = "1.0"

View File

@ -15,7 +15,7 @@ use asyncgit::{
};
use crossbeam_channel::Sender;
use crossterm::event::Event;
use filetree::FileTree;
use filetreelist::{FileTree, FileTreeItem};
use std::{
cell::Cell, collections::BTreeSet, convert::From, path::Path,
};
@ -104,7 +104,7 @@ impl RevisionFilesComponent {
}
fn tree_item_to_span<'a>(
item: &'a filetree::FileTreeItem,
item: &'a FileTreeItem,
theme: &SharedTheme,
selected: bool,
) -> Span<'a> {

View File

@ -18,7 +18,7 @@ use asyncgit::{
};
use crossbeam_channel::Sender;
use crossterm::event::Event;
use filetree::MoveSelection;
use filetreelist::MoveSelection;
use itertools::Either;
use std::{cell::Cell, convert::From, path::Path};
use tui::{

View File

@ -5,7 +5,7 @@ mod stateful_paragraph;
pub mod style;
mod syntax_text;
use filetree::MoveSelection;
use filetreelist::MoveSelection;
pub use scrollbar::draw_scrollbar;
pub use scrolllist::{draw_list, draw_list_block};
pub use stateful_paragraph::{