Giter VIP home page Giter VIP logo

melt's Introduction

melt

A visual cat-like file viewer with syntax highlighting supporting 2-file views.

With melt, you can view the content of two files that are placed side by side. The two files are syntax highlighted separately.

Screenshots

dark background
Dark background


light background
Light background

Installation

The syntax highlighting is done with the excellent bat tool (https://github.com/sharkdp/bat), so first you need to install bat.

Then, create a virtual environment and start using the software:

$ pipenv install --dev
$ ./start.py
melt - visual cat-like file viewer with syntax highlighting supporting 2-file views

Usage: melt FILE1 FILE2 [options]

Options:

-h, --help                show this help
--light                   theme for light background

melt requires bat (https://github.com/sharkdp/bat) for the syntax highlighting

Creating an EXE

The program was tested under Linux only. If you want to have a standalone executable, then issue the command

$ pynt exe

which will create the executable file melt in the dist/ folder. (Note: for this to work, follow the installation steps.)

Notes

There is a similar program called meld, which is a GUI merge and diff tool. I wanted something similar in the terminal. The name melt indicates that it is similar to meld but it is made for the terminal.

I wanted a tool that can show two files side by side in the terminal using syntax highlighting. melt is not made for merging and showing diffs, it is just a file viewer with two panels. A great advantage of melt is that the two files can have different extensions and thus they will be colored differently.

Links

  • Reddit discussion (link)

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.