Giter Site home page Giter Site logo

taizen's Introduction

taizen

MIT licensed

Browse mediawiki pages from the command line.

Installation

From crates.io

cargo install taizen

Building from source

This project uses Cursive crate, so before installing Taizen make sure you have installed necessary Cursive dependencies.

git clone https://github.com/nerdypepper/taizen
cd taizen
cargo run --release

Usage

Taizen uses a stack like model. Articles are opened on new layers, pop a layer to go back.

  • Hit s to search
  • Hit q to quit
  • Hit t to pop a layer from the article stack

You can now view wikipedia pages in different languages, by passing the language code as a commandline arg. List of language codes

Examples

taizen https://pl.wikipedia.org/   # view the polski wikis
taizen --lang=sv                   # view the swedish wikis

taizen's People

Contributors

christopherbilg avatar gyscos avatar manonthemat avatar nerdypepper avatar pickfire avatar ssiyad avatar zapanton avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

taizen's Issues

Cargo installation generates build erorr

I tried installing using cargo install taizen. Before that I did a fresh installation of rust and others with curl -sSf https://sh.rustup.rs | sh and selecting the default options.

The install failed with the status

   Compiling taizen v0.1.0
error: linking with `cc` failed: exit code: 1

Then a bunch of options following = note: "cc" and finally

  = note: /usr/bin/ld: cannot find -lncursesw
          collect2: error: ld returned 1 exit status
          

error: aborting due to previous error

error: failed to compile `taizen v0.1.0`, intermediate artifacts can be found at `/tmp/cargo-installu9ladT`

Caused by:
  could not compile `taizen`.

I'm running Ubuntu 16.04.

Issue while building on Ubuntu 18.04 LTS

`linuxpad :: ~/taizen 101 » cargo run --release
Compiling num-traits v0.2.5
Compiling unicode-xid v0.1.0
Compiling version_check v0.1.4
Compiling maplit v1.0.1
Compiling adler32 v1.0.3
Compiling gcc v0.3.54
Compiling scopeguard v0.3.3
Compiling bitflags v0.9.1
Compiling cfg-if v0.1.4
Compiling strsim v0.7.0
Compiling lazy_static v0.2.11
Compiling lazycell v0.6.0
Compiling vec_map v0.8.1
Compiling byteorder v1.2.3
Compiling foreign-types-shared v0.1.1
Compiling bitflags v1.0.3
Compiling num-rational v0.2.1
Compiling fnv v1.0.6
Compiling cc v1.0.18
Compiling stable_deref_trait v1.1.0
Compiling httparse v1.3.2
Compiling string v0.1.1
Compiling void v1.0.2
Compiling urlencoding v1.0.0
Compiling serde v1.0.70
Compiling crossbeam-utils v0.4.1
Compiling matches v0.1.7
Compiling unicode-width v0.1.5
Compiling utf8-ranges v1.0.0
Compiling arc-swap v0.2.0
error[E0658]: slice pattern syntax is experimental (see issue #23121)
--> /home/adien/.cargo/registry/src/github.com-1ecc6299db9ec823/arc-swap-0.2.0/src/lib.rs:658:59
|
658 | let groups = self.shards.iter().fold([0, 0], |[a1, a2], s| {
| ^^^^^^^^

error[E0658]: slice pattern syntax is experimental (see issue #23121)
--> /home/adien/.cargo/registry/src/github.com-1ecc6299db9ec823/arc-swap-0.2.0/src/lib.rs:659:21
|
659 | let [v1, v2] = s.snapshot();
| ^^^^^^^^

error: aborting due to 2 previous errors

error: Could not compile arc-swap.
warning: build failed, waiting for other jobs to finish...
error: build failed
linuxpad :: ~/taizen 101 »
`

Tagged release

A tagged release is needed for packaging it in Void Linux.

Readme images return 404 (not found)

The images in the readme.md can't be found.

One points to a service called 0x0 that seems to have issues, the other link points to nerdypepper.me which also seems to not hold the images anymore.

According to @pickfire this is not a duplicate of #18

Use the library Parse Wiki Text

Taizen currently parses wiki text in a naive way using regular expressions. Wiki text cannot be correctly parsed with regular expressions. I propose using Parse Wiki Text (crates.io, Github) to parse wiki text into a tree, and then formatting the output simply by walking the tree. See the readme of Parse Wiki Text for a description of the challenges of correctly parsing wiki text.

License and release versioning?

It would be nice if this project had an official license and git tags. This would make it easy to package for Void Linux.

Taizen quiting

Hey ! Is the project abandoned ?
I tried to install Taizen yesterday (successfully) on debian 10.
I can start the app, search for a word, Taizen suggest some result, but when I press Enter on one of those result, Taizen close whitout any error message. Any idea why ? : /

Building and running in Docker container produces a segmentation fault

Dockerfile contents:

FROM liuchong/rustup:stable

RUN apt update
RUN apt install -y libssl-dev pkg-config libncursesw5-dev git

WORKDIR /
RUN git clone https://github.com/NerdyPepper/taizen.git

WORKDIR /taizen
RUN cargo build
ENTRYPOINT cargo run

Output of running container:

    Finished dev [unoptimized + debuginfo] target(s) in 0.15s
     Running `target/debug/taizen`
Segmentation fault (core dumped)

Readme images not found

The images in the readme.md can't be found.
One points to a service called 0x0 that seems to have issues, the other link points to nerdypepper.me which also seems to not hold the images anymore.

Crate seems to be broken

I installed the app with cargo, but it appears to be broken.

I tried this example: taizen https://pl.wikipedia.org/, but there was no out put from the program.

I also tried taizen https://en.wikipedia.org/wiki/Railroads_in_New_England, but that search returned nothing either.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.