https://github.com/jabbalaci/melt
a visual cat-like file viewer with syntax highlighting supporting 2-file views
https://github.com/jabbalaci/melt
bat cat cli command-line file-viewer python python3 syntax-highlighting terminal two-panels vertical-split
Last synced: about 1 year ago
JSON representation
a visual cat-like file viewer with syntax highlighting supporting 2-file views
- Host: GitHub
- URL: https://github.com/jabbalaci/melt
- Owner: jabbalaci
- License: mit
- Created: 2019-10-19T19:19:57.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-11-27T12:47:30.000Z (over 2 years ago)
- Last Synced: 2024-04-16T00:08:40.852Z (about 2 years ago)
- Topics: bat, cat, cli, command-line, file-viewer, python, python3, syntax-highlighting, terminal, two-panels, vertical-split
- Language: Python
- Size: 129 KB
- Stars: 8
- Watchers: 3
- Forks: 2
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
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

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](https://meldmerge.org/),
which is a GUI merge and diff tool. I wanted something similar in
the terminal.
The name mel**t** indicates that it is
similar to meld but it is made for the **t**erminal.
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](https://old.reddit.com/r/commandline/comments/dkx5xb/melt_a_visual_catlike_file_viewer_with_syntax/))