Giter Club home page Giter Club logo

lino's Introduction


lino

A command line text editor with notepad like key bindings.

screenshot

Crates.io Crates.io Crates.io

Features

  • Notepad like keybindings.
  • Multi-line indentation.
  • Auto-indented new lines.
  • Line numbers.
  • Syntax highlighting.
  • Copy, Paste.
  • Undo, Redo.
  • Find, Replace.

Usage (Key Bindings)

Key Function
, , , Move cursor
Ctrl + , Move by word
Page Up , Page Down Move by page (scrolling)
Home Move to line start
End Move to line end
Shift + , , , Select
Ctrl + Shift + , Select by word
Shift + Page Up , Page down Select by page
Shift + Home Select upto line start
Shift + End Select upto line end
Ctrl + A Select all
Backspace Delete backward
Delete Delete forward
Ctrl / Alt + Backspace Delete backward by word
Ctrl / Alt + Delete Delete forward by word
Shift + Delete Delete current line
Ctrl / Alt + Move current line up
Ctrl / Alt + Move current line down
Ctrl / Alt + Shift + Duplicate current line upward
Ctrl / Alt + Shift + , Ctrl + D Duplicate current line downward
Alt + ] / , Tab Increase indentation
Alt + [ / , Shift + Tab Decrease indentation
Enter Enter auto-indented new line
Ctrl / Shift + Enter Enter non-indented new line
Ctrl + F Find, Replace
Ctrl + X Cut
Ctrl + C Copy
Ctrl + V Paste
Ctrl + Z Undo
Ctrl + Y Redo
Ctrl + S Save
Alt + S Save as
Ctrl + Q , Ctrl + W Close

Some key-bindings might not work on different terminals. But the most common ones should work on all.

Install

You will need to have Rust (2018 or higher) installed on your system before proceeding.
Install it from https://www.rust-lang.org/tools/install

1. Install with Cargo

cargo install lino

2. Run

lino <optional-filename>

3. Move binary to /usr/bin/ on Linux (Optional)

sudo mv `which lino` /usr/bin/

Tested on Windows 10 and WSL (Ubuntu 18.04)

Build

You will need to have Rust (2018 or higher) installed on your system before proceeding.
Install it from https://www.rust-lang.org/tools/install

1. Clone this repo

git clone https://github.com/ahmednooor/lino.git

2. Go into the cloned repo directory

cd ./lino/

3. Build & run with Cargo

cargo run <optional-filename>

On Linux (Debian based), if you head into problems, try installing the following libraries and re-run with cargo.

sudo apt install xorg-dev libxcb-present-dev libxcb-composite0-dev libxcb-shape0-dev libxcb-xfixes0-dev

If you get an error about something like couldn't link with cc, try installing the following.

sudo apt install gcc gcc-multilib binutils

NOTE: If you are unsure about above mentioned Linux libraries, do it on a dev system or a vm instead of your daily driver.

Rust Dependencies

A big Thanks to the authors/maintainers/contributors of these libraries.

Motivation

Imagine you're a mortal who is accustomed to VS Code or some other GUI Text Editor/IDE, and suddenly you have to login to some SSH or fire up a Linux Server Distro with no GUI. You find yourself treading in the territory of immortals where beasts like Vim, Emacs and others reside. You find a friend called Nano, but it doesn't speak your tongue (i.e. key bindings), so you waste your time trying to learn a new way to communicate instead of getting the job done and get the hell out of there. This editor can be your friend that speaks the same-ish tongue and you can take it there with you. It isn't the only one though, there is another one (a better one) called Micro.

lino's People

Contributors

ahmednooor 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

Watchers

 avatar  avatar  avatar

Forkers

monoxial

lino's Issues

`Ctrl + C` is not updating the clipboard.

I select with shift + arrows some words, I press Ctrl + C, I can see the Copied. message in the status bar, but the clipboard (primay or clipboard) is not updated. Same with Ctrl + X : Cut. is shown, the selection is deleted, but the clipbord is not updated.

I am using Ubuntu 18.04.5 LTS with XFCE 4.12.

I have these settings :

LANG=en_US.UTF-8
LANGUAGE=en_US:
> setxkbmap -query
rules:      evdev
model:      pc105
layout:     us
variant:    altgr-intl

Alt + G is printing 'ã' instead of showing the guide

Also, most of Alt + ... combinations are printing special characters.

I am using Ubuntu 18.04.5 LTS with XFCE 4.12.

I have these settings :

LANG=en_US.UTF-8
LANGUAGE=en_US:
> setxkbmap -query
rules:      evdev
model:      pc105
layout:     us
variant:    altgr-intl

ctrl-arrow

Hi!

you editor is almost perfect. Can you please add ctrl-arrow (jumping left-right a single word)?

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.