simple-console-editor
asciimatics
simple-console-editor | asciimatics | |
---|---|---|
1 | 17 | |
13 | 3,538 | |
- | - | |
1.8 | 7.4 | |
about 1 year ago | 29 days ago | |
Python | Python | |
- | Apache License 2.0 |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
simple-console-editor
-
Show HN: TopSpace β Scroll above the top line in Emacs
Indeed it is a nice feature! It's useful not only with large monitors, but also when one needs to visually compare two snippets that appear in two files at different offsets close to the beginning / end.
Although I haven't seen it implemented before -- granted I don't often investigate text editors -- some editors / pagers (`vim`, `less`, Sublime?, etc.) support keeping a number of lines always visible between the cursor and the top / bottom of the view; some also support keeping the cursor always centered vertically. But as said, none of them seem to support scrolling past the beginning of the file.
BTW, I've just "stolen" your idea and implemented in my own Python-based editor (<https://github.com/volution/simple-console-editor>).
Thanks! :)
asciimatics
-
What is your go-to UI framework?
For small apps, I may choose a TUI (Terminal User Interface). Curses for Python is very lightweight, but quite low level and difficult to use for anything more than a very simple interface (if your app tries to draw outside of the drawing area, the app crashes, so you have to carefully manage every detail). Textual and asciimatics are both mature TUI frameworks that provide a higher level and more Pythonic way to create TUI's.
-
How to format output for a stand-alone display screen? Larger numbers, colors, redrawing the screen from the top left instead of printing a new line every time?
If you are looking for something more flexible that just printing to a terminal, take a look at Asciimatics and textual. Both are available from Pypi.
-
I'm making a notes app and am up to making an 'edit' feature, but have no way of making changes to a file's contents, let alone saving the changes and writing them to the file
Scroll down to the TUI example in the README, just above the documentation link: https://github.com/peterbrittain/asciimatics
-
Fireworks-Animated Ascii Art ππ
Download fireworks.py
-
Fireworks-Animated Ascii Art
Source code: https://github.com/peterbrittain/asciimatics/blob/master/samples/fireworks.py
-
ShyySH: a TUI connection manager for SSH
I have made yet another ssh connection manager with TUI, using asciimatics and tinyDB.
-
Best library for TUI (Text User Interface) and CLI (Command line Interface)
Personally I dig the aesthetics of asciimatics, it's quite handy and cross-platform.
-
CLI Tools on windows [Python]
I've used asciimatics in the past to good effect.
-
Making ascii βanimationβ look smoother.
Take a look at rich (kinda new, but pretty neat), asciimatics, or urwid
- Explaining Code Using ASCII Art
What are some alternatives?
CudaText - Cross-platform text editor, written in Free Pascal
python-prompt-toolkit - Library for building powerful interactive command line applications in Python
topspace - Recenter line 1 with scrollable upper margin/padding in Emacs
colorama - Simple cross-platform colored terminal text in Python
editor - π Open the default text editor π
textual - The lean application framework for Python. Build sophisticated user interfaces with a simple Python API. Run your apps in the terminal and a web browser.
gdb-dashboard - Modular visual interface for GDB in Python
Gooey - Turn (almost) any Python command line program into a full GUI application with one line
Python Fire - Python Fire is a library for automatically generating command line interfaces (CLIs) from absolutely any Python object.
npyscreen - Automatically exported from code.google.com/p/npyscreen
click - Python composable command line interface toolkit
asynccli - A CLI framework based on asyncio