Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ShashankaNataraj/Juggernaut
The unstoppable programmers editor written in Rust and Javascript
https://github.com/ShashankaNataraj/Juggernaut
editor ide javascript rust spacemacs vim webpack webstorm
Last synced: 3 months ago
JSON representation
The unstoppable programmers editor written in Rust and Javascript
- Host: GitHub
- URL: https://github.com/ShashankaNataraj/Juggernaut
- Owner: ShashankaNataraj
- License: mit
- Archived: true
- Created: 2019-04-27T06:46:47.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-01-22T05:29:15.000Z (almost 5 years ago)
- Last Synced: 2024-06-28T02:43:49.802Z (5 months ago)
- Topics: editor, ide, javascript, rust, spacemacs, vim, webpack, webstorm
- Language: JavaScript
- Homepage:
- Size: 660 KB
- Stars: 28
- Watchers: 2
- Forks: 1
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
[![Gitter](https://badges.gitter.im/https-github-com-ShashankaNataraj-Juggernaut/community.svg)](https://gitter.im/https-github-com-ShashankaNataraj-Juggernaut/community?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge)
[![HitCount](http://hits.dwyl.io/ShashankaNataraj/Juggernaut.svg)](http://hits.dwyl.io/ShashankaNataraj/Juggernaut)## Yet another text editor?
I've used emacs(with and without spacemacs), Vim, WebStorm, and everything in between. I keep coming back to webstorm and vim due to 1 reason: The features webstorm provides are amazing. But WebStorm is a resource hog. Vim is a light saber, and excels at fast editing. Plugins do bog vim down in terms of speed.Since I work on 3D applications, I need every ounce of juice my editor can spare me and I want a crossbreed of vim and webstorm to drive my daily editing needs.
So, I set out to write a lightweight and fast editor that isn't a resource hog but still fits the workflow I'm most used to.
## Why not VSCode?
https://github.com/Microsoft/vscode/issues/49161While VSCode fits everything Im trying to do and is an engineering marvel:
- I refuse to put up with the telemetry.
- I dont want a vertical bar occupying 5% of my screen all the time.
- I dont want tabs at the top of the screen.
- I want to have control on everything my editor is trying to do.While some / all of these can be fixed with plugins / using different forks of VSCode, one question arises: Why bother? Why not build my own editor from the ground up instead of complaining about VSCode or webstorm or Vim?
## Why even compete with established editors out there?
There are many editors out there, but this one is mine. And, I can learn Rust when implementing it :sunglasses:## Objectives in order of priority
- Fast & Lightweight: Do a few things, do them well. Do not try to compete with VSCode and Webstorm. Borrow only what makes the most sense productivity - wise.
- Pseudo Modal based: Dont copy vim or emacs' evil mode. Take only what makes the most sense. Completely keyboard driven.
- Aesthetically pleasing
- Predictable & stable
- Spacemacs style keychords
- 0 telemetry: No compromises! Store any config on the users own machine, dont send any network requests without the user knowing about it. Binaries produced during releases should be the same if the user tries to build it on his own. i.e, no sleight of hand w.r.t the build and release process like VSCode.
- Use the systems native browser runtimes instead of packaging a runtime with the release binary## Build from source
You will need nodejs & npm to be installed before proceeding further.
Run `npm run release` to install dependencies, and build the JS and Rust code into one binary. The built binary will be in `target/release`.## Hack with me
Run `npm run watch-rs` to allow cargo to watch for changes and live reload
Run `npm run watch-js` to allow webpack to look for UI changes and live reload## Contributions
PR's are welcome. Just try not to break anything, even if you do, thats ok, Lets build something good together! :smile:### Where do you need help?
Right now, Im trying to get all the basics right. Take a look at the project tracker if you're so inclined: https://github.com/ShashankaNataraj/Juggernaut/projects## But.. But.. electron is bloated®
That is exactly why this project uses https://github.com/Boscop/web-view :laughing:
The idea is to not distribute a browsers runtime along with the binary, but to use what system level browser runtimes are already available. That way, power consumption and performance are guaranteed to be better than the bundled binary.
This leads to some problems:
1. Native window dialogs are no longer accessible because web browsers are built to not expose file paths and directory structures to websites
2. Actions like drag and drop are no longer available because of the same reasons as the above point. Drag and drops while possible, will not yield the file path