Comments (5)
Damn you and your columns! :P
I think that configuring the order of the widgets in threadlines could be don with something like
a custom markdown syntax. For instance, a config option threadline_display
could look like
threadline_display = <timestamp> <taglist> <authors> <subject> <body>
We'd have to define these keywords and read and respect the config in widgets.ThreadlineWidget
Go for it :)
from alot.
yeah, actually I don't like that idea that much anymore. I think swappable columns is what /me really wants! duckcover*
I'm afraid I'm really into that whole alignment stuff sry :/
from alot.
right, but 'swappable columns' would have to be defined in a similar manner. cf. the displayed_headers
option
from alot.
possibly a better idea is to format this with a hook that takes a dict of possible colums
(name->widget) and sorts it to a list, maybe add a fixed width integer.. like this:
#user defined format hook
def threadline_format(columns, **kwargs):
return [
( columns['timestamp'], 10, 10, 0) # timestamp widget, min width=10, max width=10, no weight
( columns['tags'], 0, -1, 0.5, 0) # no min width, max width=-1 (as much as needed), no weight
( columns['authors'], 0, None, 0.5) # no min or max width, takes half of remaining space
( columns['subject'], 0, None, 0.5) # takes other half of remaining space
]
from alot.
actually something like this can be simulated with fixed width fields in threadline theming (see e.g. th 'mutt' theme in the extras). I'm closing this here.
from alot.
Related Issues (20)
- Clipboard alot/vim-X does not work HOT 6
- Crash on startup AssertionError: (0, 0, 1) HOT 7
- Alot does not render all html parts of a message
- Do not quit while the editor is open
- test_no_spawn_no_stdin_attached tests the build environment HOT 4
- move irc channel from freenode to libera HOT 3
- 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 15
- 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 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.