Skip to content

Commit 032948f

Browse files
author
Stephan Dilly
committed
rename filetree crate to prepare for publish
1 parent bfa83ae commit 032948f

15 files changed

+13
-13
lines changed

Cargo.lock

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ keywords = [
2121
[dependencies]
2222
scopetime = { path = "./scopetime", version = "0.1" }
2323
asyncgit = { path = "./asyncgit", version = "0.16" }
24-
filetree = { path = "./filetree" }
24+
filetreelist = { path = "./filetreelist", version = "0.1" }
2525
crossterm = { version = "0.19", features = [ "serde" ] }
2626
clap = { version = "2.33", default-features = false }
2727
tui = { version = "0.15", default-features = false, features = ['crossterm', 'serde'] }
@@ -66,7 +66,7 @@ timing=["scopetime/enabled"]
6666
members=[
6767
"asyncgit",
6868
"scopetime",
69-
"filetree",
69+
"filetreelist",
7070
]
7171

7272
[profile.release]

Makefile

+2-2
Original file line numberDiff line numberDiff line change
@@ -45,12 +45,12 @@ fmt:
4545

4646
clippy:
4747
touch src/main.rs
48-
cargo clean -p gitui -p asyncgit -p scopetime -p filetree
48+
cargo clean -p gitui -p asyncgit -p scopetime -p filetreelist
4949
cargo clippy --workspace --all-features
5050

5151
clippy-nightly:
5252
touch src/main.rs
53-
cargo clean -p gitui -p asyncgit -p scopetime -p filetree
53+
cargo clean -p gitui -p asyncgit -p scopetime -p filetreelist
5454
cargo +nightly clippy --workspace --all-features
5555

5656
check: fmt clippy test

filetree/Cargo.toml filetreelist/Cargo.toml

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
[package]
2-
name = "filetree"
2+
name = "filetreelist"
33
version = "0.1.0"
44
authors = ["Stephan Dilly <[email protected]>"]
55
edition = "2018"
6-
description = "filetree abstraction based on a sorted path list"
6+
description = "filetree abstraction based on a sorted path list, supports key based navigation events, folding, scrolling and more"
77
homepage = "https://github.com/extrawurst/gitui"
88
repository = "https://github.com/extrawurst/gitui"
99
readme = "README.md"
1010
license-file = "LICENSE.md"
1111
categories = ["command-line-utilities"]
12-
keywords = ["gui","cli","terminal","ui"]
12+
keywords = ["gui","cli","terminal","ui","tui"]
1313

1414
[dependencies]
1515
thiserror = "1.0"
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

src/components/revision_files.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ use asyncgit::{
1515
};
1616
use crossbeam_channel::Sender;
1717
use crossterm::event::Event;
18-
use filetree::FileTree;
18+
use filetreelist::{FileTree, FileTreeItem};
1919
use std::{
2020
cell::Cell, collections::BTreeSet, convert::From, path::Path,
2121
};
@@ -104,7 +104,7 @@ impl RevisionFilesComponent {
104104
}
105105

106106
fn tree_item_to_span<'a>(
107-
item: &'a filetree::FileTreeItem,
107+
item: &'a FileTreeItem,
108108
theme: &SharedTheme,
109109
selected: bool,
110110
) -> Span<'a> {

src/components/syntax_text.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ use asyncgit::{
1818
};
1919
use crossbeam_channel::Sender;
2020
use crossterm::event::Event;
21-
use filetree::MoveSelection;
21+
use filetreelist::MoveSelection;
2222
use itertools::Either;
2323
use std::{cell::Cell, convert::From, path::Path};
2424
use tui::{

src/ui/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ mod stateful_paragraph;
55
pub mod style;
66
mod syntax_text;
77

8-
use filetree::MoveSelection;
8+
use filetreelist::MoveSelection;
99
pub use scrollbar::draw_scrollbar;
1010
pub use scrolllist::{draw_list, draw_list_block};
1111
pub use stateful_paragraph::{

0 commit comments

Comments
 (0)