mirror of
https://github.com/extrawurst/gitui.git
synced 2024-11-22 02:12:58 +03:00
rename filetree crate to prepare for publish
This commit is contained in:
parent
bfa83ae343
commit
032948f01a
4
Cargo.lock
generated
4
Cargo.lock
generated
@ -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",
|
||||
|
@ -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]
|
||||
|
4
Makefile
4
Makefile
@ -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
|
||||
|
@ -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"
|
@ -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> {
|
||||
|
@ -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::{
|
||||
|
@ -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::{
|
||||
|
Loading…
Reference in New Issue
Block a user