Comments (4)
i took the dirty road:
ui.prompt accepts a list of strings as history
parameter and captures curser up/down accordingly
from alot.
maybe at some point we want a persistent history that is read from a file somewhere
from alot.
Maybe you just wanna use readline[0]?
Somewhat related:
Just saw a bit of very impressive code parsing commands, doing tab completion and everything for free. Uses python's cmd module[1].
[0]http://docs.python.org/library/readline.html
[1]http://docs.python.org/library/cmd.html
from alot.
yes and no: since we use urwid, input is handeled by urwid, so you can't use readline directly but must use urwid.mainloop.get_input or something.
@cmd: early prototypes of alot actually used cmds successor cmd2. the problem here is, that cmd is hardwired to use readline or input or whatnot, point being it always directly reads from stdin, which renders it partly useless for our purpose because you can't use its input facilities and thus its tabcompletion for example.
Also, atm alot lacks a terminal like continuous output, you can only stack notification lines.
It might at some point prove promising to reattach cmd2 to alot. I removed it because i could not use most of its
features anyway. If you can bend cmd ord cmd2 to read and write from/to custom streams instead of sys.sdtin/sys.sdtout we would be better of.
from alot.
Related Issues (20)
- New release? HOT 1
- change colorscheme at runtime ? HOT 1
- [master/cffi] AttributeError: 'Thread' object has no attribute 'get_toplevel_messages' HOT 7
- `No matching distribution found for notmuch2>=0.30` HOT 3
- Contact completion with khard HOT 2
- Not compatible with notmuch2 0.35 bindings HOT 5
- Act on multiple threads in search mode HOT 3
- Local hostname in Message-ID HOT 4
- Unknown values were found in config
- please make `get_body_text` more robust HOT 1
- prompt before overwriting files when saving attachments HOT 1
- ` extract_body_part` can receive empty strings and throws exceptions when it does
- Crash while trying to attach word .doc file: module 'magic' has no attribute '_libraries HOT 3
- Sort oldest first by newest email in thread
- LookupError when displaying inbox with notmuch backend HOT 1
- Use Github Actions HOT 4
- would it be ok to convert installer to poetry ? HOT 3
- Switch from gpg to python-gnupg HOT 13
- mailcap is deprecated in Python 3.11 and will be removed in 3.13 HOT 1
- Default theme should always be readable HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from alot.