Code Monkey home page Code Monkey logo

faiyels's Introduction

faiyels

Faiyels is a source code visualizer that shows the code in all the files of your program in a massive overview kind of like Sublime Text's minimap so you can see the size and texture of all the files. It uses my syntect library to do syntax highlighting. It is written in Rust using Gfx and Conrod. It is currently quite basic and just shows all the files in a directory and lets you zoom around.

It's reasonably fast and can render millions of boxes at 60fps thanks to instancing, and the fact that each character is just 2 polygons.

Demo GIF

Roadmap

  • Draw lots of rectangles
  • Draw lots of rectangles in the same places as a piece of text
  • Draw lots of rectangles in the same places as the text in a file
  • Add controls to navigate and zoom around
  • Draw many files at once in a useful arrangement
  • Colour the rectangles according to syntax highlighting
  • Show actual letters when you zoom in enough

faiyels's People

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

Watchers

 avatar  avatar  avatar  avatar  avatar

faiyels's Issues

rayon doesn't build on Windows with some version.

error[E0277]: the trait bound Self: std::marker::Sized is not satisfied

I tried to build it running cargo build at rustc 1.16.0 (30cf806ef 2017-03-10), and got this:

Professional@Professional-pc$ cargo build
   Compiling glob v0.2.11
   Compiling winapi v0.2.6
   Compiling log v0.3.6
   Compiling lzw v0.10.0
   Compiling itertools v0.4.13
warning[E0122]: trait bounds are not (yet) enforced in type definitions
   --> C:\Users\Professional\.cargo\registry\src\github.com-1ecc6299db9ec823\itertools-0.4.13\src\lib.rs:117:1
    |
117 | pub type MapFn<I, B> where I: Iterator = iter::Map<I, fn(I::Item) -> B>;
    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

   Compiling khronos_api v1.0.0
   Compiling interpolation v0.1.0
   Compiling read_color v0.1.0
   Compiling user32-sys v0.1.2
   Compiling shell32-sys v0.1.1
   Compiling kernel32-sys v0.2.2
   Compiling rustc-serialize v0.3.19
   Compiling gfx_core v0.3.1
   Compiling gl_generator v0.5.1
   Compiling gfx_gl v0.3.1
   Compiling glutin v0.5.1
   Compiling num-traits v0.1.32
   Compiling bincode v0.5.8
   Compiling num-complex v0.1.32
   Compiling num-integer v0.1.32
   Compiling num-iter v0.1.32
   Compiling bitflags v0.7.0
   Compiling color_quant v1.0.0
   Compiling num-bigint v0.1.32
   Compiling gif v0.8.0
   Compiling gfx v0.11.0
   Compiling gfx_device_gl v0.10.0
   Compiling num-rational v0.1.32
   Compiling num v0.1.32
   Compiling enum_primitive v0.1.0
   Compiling cgmath v0.9.1
   Compiling euclid v0.6.6
   Compiling dwmapi-sys v0.1.0
   Compiling rayon v0.3.1
error[E0277]: the trait bound `Self: std::marker::Sized` is not satisfied
  --> C:\Users\Professional\.cargo\registry\src\github.com-1ecc6299db9ec823\rayon-0.3.1\src\par_iter\internal.rs:25:5
   |
25 |     fn split_at(self, index: usize) -> (Self, Self);
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `std::marker::Sized` is not implemented for `Self`
   |
   = help: consider adding a `where Self: std::marker::Sized` bound
   = note: tuple elements must have `Sized` type

error[E0277]: the trait bound `Self: std::marker::Sized` is not satisfied
  --> C:\Users\Professional\.cargo\registry\src\github.com-1ecc6299db9ec823\rayon-0.3.1\src\par_iter\internal.rs:42:5
   |
42 |     fn split_at(self, index: usize) -> (Self, Self, Self::Reducer);
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `std::marker::Sized` is not implemented for `Self`
   |
   = help: consider adding a `where Self: std::marker::Sized` bound
   = note: tuple elements must have `Sized` type

error: aborting due to 2 previous errors

error: Could not compile `rayon`.
Build failed, waiting for other jobs to finish...
error: build failed

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.