Giter VIP home page Giter VIP logo

vixi's People

Contributors

jwbowen avatar natomist avatar peltoche avatar sucrecacao avatar wezm avatar wlangstroth avatar ytmhub 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  avatar  avatar  avatar  avatar

vixi's Issues

compile error

I git-cloned the repo and ran : cargo install --path .
and got the following error:
(xi was not pre-installed

error[E0658]: use of unstable library feature 'mem_take'
   --> /home/joe/.cargo/git/checkouts/xi-editor-e3bc3cb50a6bb63b/4f93edb/rust/rope/src/breaks.rs:228:24
    |
228 |             let leaf = mem::take(&mut self.leaf);
    |                        ^^^^^^^^^
    |
    = note: for more information, see https://github.com/rust-lang/rust/issues/61129

error[E0658]: use of unstable library feature 'mem_take'
   --> /home/joe/.cargo/git/checkouts/xi-editor-e3bc3cb50a6bb63b/4f93edb/rust/rope/src/spans.rs:130:28
    |
130 |             let mut leaf = mem::take(&mut self.leaf);
    |                            ^^^^^^^^^
    |
    = note: for more information, see https://github.com/rust-lang/rust/issues/61129

   Compiling toml v0.5.6
error: aborting due to 2 previous errors

For more information about this error, try `rustc --explain E0658`.
error: Could not compile `xi-rope`.
warning: build failed, waiting for other jobs to finish...
error: failed to compile `vixi v0.1.0 (/home/joe/src/vixi)`, intermediate artifacts can be found at `/home/joe/src/vixi/target`

Caused by:
  build failed
``
Ubuntu 19.04 
rustc 1.37.0

No license

Currently, there's no license available on this project, so it cannot be distributed. Could you please add a license to allow copying and distributing this project freely?

Xi-editor uses Apache 2. Otherwise, there are resources on choosing a license.

Consider Kakoune mode

quoting @zellyn : xi-editor/xi-editor#337

Not only is Kakoune an interesting and ambitious redesign of a modal editing UI, but many of the features, such as multiple selections and especially selection splitting, would be an interesting test case for Xi: if you can cover Kakoune functionality, you should be able to cover anything!

crashing on saves

There are two separate issues that cause crashes when saving a file with vixi.

1

event_controller/view.rs line 48


    pub fn lines_availables_after(&self, start: u32) -> u32 {
        (self.lines.len() as u32) - start
    }

start is frequently larger than what lines len gets set to when working with a file over 100 lines

2

same file line 172.


    pub fn update_buffer(&mut self, operations: Vec<Operation>) {
      .
      .
      .
      .

                        let old_buffer = &self.buffer.lines[old_idx + i];
                        new_buffer.lines.push(Line {
                            raw: old_buffer.raw.clone(),
                            ln: operation.ln.map(|ln| ln + i),
                            is_dirty,
                        });
                        new_idx += 1;
                    }

                    old_idx += operation.n;
                }

indexing into buffer.lines is often at a value too high for the actual length of the vector.

These issues seem related to something elsewhere that prevents the buffer from having an accurate count of its lines.

I had some errors compiling vixi-master

error[E0433]: failed to resolve: maybe a missing extern crate sys;?
--> C:\Users\rog.cargo\registry\src\github.com-1ecc6299db9ec823\termion-1.5.1\src\lib.rs:22:9
|
22 | pub use sys::size::terminal_size;
| ^^^ maybe a missing extern crate sys;?

error[E0433]: failed to resolve: maybe a missing extern crate sys;?
--> C:\Users\rog.cargo\registry\src\github.com-1ecc6299db9ec823\termion-1.5.1\src\lib.rs:23:9
|
23 | pub use sys::tty::{is_tty, get_tty};
| ^^^ maybe a missing extern crate sys;?

error[E0433]: failed to resolve: maybe a missing extern crate sys;?
--> C:\Users\rog.cargo\registry\src\github.com-1ecc6299db9ec823\termion-1.5.1\src\async.rs:5:5
|
5 | use sys::tty::get_tty;
| ^^^ maybe a missing extern crate sys;?

error[E0433]: failed to resolve: maybe a missing extern crate sys;?
--> C:\Users\rog.cargo\registry\src\github.com-1ecc6299db9ec823\termion-1.5.1\src\raw.rs:29:5
|
29 | use sys::attr::{get_terminal_attr, raw_terminal_attr, set_terminal_attr};
| ^^^ maybe a missing extern crate sys;?

error[E0432]: unresolved import sys
--> C:\Users\rog.cargo\registry\src\github.com-1ecc6299db9ec823\termion-1.5.1\src\raw.rs:28:5
|
28 | use sys::Termios;
| ^^^ maybe a missing extern crate sys;?

Compiling bincode v1.1.3
Compiling toml v0.4.10
error[E0425]: cannot find function get_tty in this scope
--> C:\Users\rog.cargo\registry\src\github.com-1ecc6299db9ec823\termion-1.5.1\src\async.rs:20:36
|
20 | thread::spawn(move || for i in get_tty().unwrap().bytes() {
| ^^^^^^^ not found in this scope

error[E0425]: cannot find function set_terminal_attr in this scope
--> C:\Users\rog.cargo\registry\src\github.com-1ecc6299db9ec823\termion-1.5.1\src\raw.rs:45:9
|
45 | set_terminal_attr(&self.prev_ios).unwrap();
| ^^^^^^^^^^^^^^^^^ not found in this scope

error[E0425]: cannot find function get_terminal_attr in this scope
--> C:\Users\rog.cargo\registry\src\github.com-1ecc6299db9ec823\termion-1.5.1\src\raw.rs:90:23
|
90 | let mut ios = get_terminal_attr()?;
| ^^^^^^^^^^^^^^^^^ not found in this scope

error[E0425]: cannot find function raw_terminal_attr in this scope
--> C:\Users\rog.cargo\registry\src\github.com-1ecc6299db9ec823\termion-1.5.1\src\raw.rs:93:9
|
93 | raw_terminal_attr(&mut ios);
| ^^^^^^^^^^^^^^^^^ not found in this scope

error[E0425]: cannot find function set_terminal_attr in this scope
--> C:\Users\rog.cargo\registry\src\github.com-1ecc6299db9ec823\termion-1.5.1\src\raw.rs:95:9
|
95 | set_terminal_attr(&ios)?;
| ^^^^^^^^^^^^^^^^^ not found in this scope

Compiling toml v0.5.0
Compiling syn v0.15.30
error: aborting due to 10 previous errors

Some errors have detailed explanations: E0425, E0432, E0433.
For more information about an error, try rustc --explain E0425.
error: Could not compile termion.
warning: build failed, waiting for other jobs to finish...
error: build failed

Invisible text

Issue

Text occasionally disappears, reappears, and shifts wrongly as I move my cursor about the screen. Here is an example with the default keyboard.toml.

Info

  • Version: 0.1.0
  • Terminal Emulator: alacritty 0.2.9
  • OS: Linux Kernel 5.0.7 - Arch Linux

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.