forked from extern/nushell
Re-enable the textview plugin, now its own crate
This commit is contained in:
parent
4526d757b6
commit
1fcf671ca4
3
Cargo.lock
generated
3
Cargo.lock
generated
@ -2079,13 +2079,14 @@ dependencies = [
|
|||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "nu-textview"
|
name = "nu_plugin_textview"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"ansi_term 0.12.1",
|
"ansi_term 0.12.1",
|
||||||
"crossterm",
|
"crossterm",
|
||||||
"nu",
|
"nu",
|
||||||
"nu-build",
|
"nu-build",
|
||||||
|
"nu-errors",
|
||||||
"nu-protocol",
|
"nu-protocol",
|
||||||
"nu-source",
|
"nu-source",
|
||||||
"syntect",
|
"syntect",
|
||||||
|
@ -13,7 +13,7 @@ documentation = "https://book.nushell.sh"
|
|||||||
|
|
||||||
[workspace]
|
[workspace]
|
||||||
|
|
||||||
members = ["crates/nu-errors", "crates/nu-source", "crates/nu-textview", "crates/nu-protocol", "crates/nu-parser", "crates/nu-build"]
|
members = ["crates/nu-errors", "crates/nu-source", "crates/nu_plugin_textview", "crates/nu-protocol", "crates/nu-parser", "crates/nu-build"]
|
||||||
|
|
||||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "nu-build"
|
name = "nu-build"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
authors = ["Yehuda Katz <wycats@gmail.com>"]
|
authors = ["Yehuda Katz <wycats@gmail.com>", "Jonathan Turner <jonathan.d.turner@gmail.com>", "Andrés N. Robalino <andres@androbtech.com>"]
|
||||||
edition = "2018"
|
edition = "2018"
|
||||||
|
|
||||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "nu-errors"
|
name = "nu-errors"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
authors = ["Yehuda Katz <wycats@gmail.com>"]
|
authors = ["Yehuda Katz <wycats@gmail.com>", "Jonathan Turner <jonathan.d.turner@gmail.com>", "Andrés N. Robalino <andres@androbtech.com>"]
|
||||||
edition = "2018"
|
edition = "2018"
|
||||||
|
|
||||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "nu-parser"
|
name = "nu-parser"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
authors = ["Yehuda Katz <wycats@gmail.com>"]
|
authors = ["Yehuda Katz <wycats@gmail.com>", "Jonathan Turner <jonathan.d.turner@gmail.com>", "Andrés N. Robalino <andres@androbtech.com>"]
|
||||||
edition = "2018"
|
edition = "2018"
|
||||||
|
|
||||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "nu-protocol"
|
name = "nu-protocol"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
authors = ["Yehuda Katz <wycats@gmail.com>"]
|
authors = ["Yehuda Katz <wycats@gmail.com>", "Jonathan Turner <jonathan.d.turner@gmail.com>", "Andrés N. Robalino <andres@androbtech.com>"]
|
||||||
edition = "2018"
|
edition = "2018"
|
||||||
|
|
||||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "nu-source"
|
name = "nu-source"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
authors = ["Yehuda Katz <wycats@gmail.com>"]
|
authors = ["Yehuda Katz <wycats@gmail.com>", "Jonathan Turner <jonathan.d.turner@gmail.com>", "Andrés N. Robalino <andres@androbtech.com>"]
|
||||||
edition = "2018"
|
edition = "2018"
|
||||||
description = "A source string characterizer for Nushell"
|
description = "A source string characterizer for Nushell"
|
||||||
license = "MIT"
|
license = "MIT"
|
||||||
|
@ -1,24 +1,19 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "nu-textview"
|
name = "nu_plugin_textview"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
authors = ["Yehuda Katz <wycats@gmail.com>"]
|
authors = ["Yehuda Katz <wycats@gmail.com>", "Jonathan Turner <jonathan.d.turner@gmail.com>", "Andrés N. Robalino <andres@androbtech.com>"]
|
||||||
edition = "2018"
|
edition = "2018"
|
||||||
|
|
||||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||||
|
|
||||||
[[bin]]
|
|
||||||
name = "nu_plugin_textview"
|
|
||||||
path = "src/main.rs"
|
|
||||||
required-features = ["textview"]
|
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
|
|
||||||
syntect = { version = "3.2.0" }
|
syntect = { version = "3.2.0" }
|
||||||
ansi_term = "0.12.1"
|
ansi_term = "0.12.1"
|
||||||
crossterm = { version = "0.10.2" }
|
crossterm = { version = "0.10.2" }
|
||||||
nu = { path = "../.." }
|
nu = { path = "../.." }
|
||||||
nu-protocol = { path = "../nu-protocol" }
|
nu-protocol = { path = "../nu-protocol" }
|
||||||
nu-source = { path = "../nu-source" }
|
nu-source = { path = "../nu-source" }
|
||||||
|
nu-errors = { path = "../nu-errors" }
|
||||||
url = "2.1.0"
|
url = "2.1.0"
|
||||||
|
|
||||||
[build-dependencies]
|
[build-dependencies]
|
@ -1,7 +1,8 @@
|
|||||||
use crossterm::{cursor, terminal, RawScreen};
|
use crossterm::{cursor, terminal, RawScreen};
|
||||||
use crossterm::{InputEvent, KeyEvent};
|
use crossterm::{InputEvent, KeyEvent};
|
||||||
use nu::{CallInfo, Plugin, Primitive, ShellError, Signature, UntaggedValue, Value};
|
use nu::Plugin;
|
||||||
use nu_protocol::{outln, serve_plugin};
|
use nu_errors::ShellError;
|
||||||
|
use nu_protocol::{outln, serve_plugin, CallInfo, Primitive, Signature, UntaggedValue, Value};
|
||||||
use nu_source::AnchorLocation;
|
use nu_source::AnchorLocation;
|
||||||
|
|
||||||
use syntect::easy::HighlightLines;
|
use syntect::easy::HighlightLines;
|
Loading…
Reference in New Issue
Block a user