Recent activity

Re: [PATCH] WIP: Add Style configuration 16 days ago

From Srivathsan Murali to ~sircmpwn/aerc

On Fri Jan 31, 2020 at 7:47 PM, Alex Stevenson wrote:
> Or is the plan to include support for regex overrides?
Currently, I plan to have a style section and have regex overrides
similar to UIConfig.

Re: [PATCH] WIP: Add Style configuration 17 days ago

From Srivathsan Murali to ~sircmpwn/aerc

On Fri Jan 31, 2020 at 6:10 AM, Reto wrote:
> I also think that a separate file would be better than directly putting
> it into aerc.conf for the styles.
Will work on this for the next version of the patch.

Re: [PATCH] WIP: Add Style configuration 17 days ago

From Srivathsan Murali to ~sircmpwn/aerc

On Thu Jan 30, 2020 at 3:14 PM, Galen Abell wrote:
> Alternatively, maybe adding a "theme" configuration option to aerc.conf
> that would specify the name of the theme to use, and pull from files in
> aerc's share folder or the user's config location.
>
> Multiple themes could also be applied sequentially to overwrite prior
> style directives, as Reto mentioned.
If there is a demand for such a method, I would not mind making it work.
Once styles have been built into aerc, this should be quite straight
forward to pull from a shared themes folder.

> Thanks for starting to look into this, really excited about colorizing
> aerc!
You are welcome. Looking forward to it myself.

Re: [PATCH] WIP: Add Style configuration 17 days ago

From Srivathsan Murali to ~sircmpwn/aerc

On Thu Jan 30, 2020 at 8:52 PM, Reto wrote:
> I'd rather have a single [style] section that can be overridden by
> other, more
> specific sections like [style:subject~regex] and the likes.
I like it. As this would really make styles being more customizable than
the way I originally envisioned. 

> Naturally the options would then be called differently, say index_fg ,
> index_read_fg
> or whatever naming scheme we can come up with.
I am not too sure, I am too happy to have index_fg, index_bg, etc.. as
there would be more attributes like bold and underline. which would mean
we have 4 fields per item.

Re: [PATCH] WIP: Add Style configuration 17 days ago

From Srivathsan Murali to ~sircmpwn/aerc

Here is a screenshot of aerc with the example styles config.
https://imgur.com/a/TA5swdG

[PATCH] WIP: Add Style configuration 17 days ago

From Srivathsan Murali to ~sircmpwn/aerc

---
This is WIP of the style/color configuration for Aerc as I suggested
recently. 

I have setup very basic configuration for msglist just to test the
coloring out.

You can customize the styles used in tcell contexts by providing 
`[styles]` section in aerc.conf which provides the default style.

Styles for individual objects can be customized as children to the
styles sections as seen in the example below.

```
[message trimmed]

Discussion: Add color configuration 18 days ago

From Srivathsan Murali to ~sircmpwn/aerc

Reposting it here from todo#29  as requested by ~labrat.

I would like to take a stab at adding colors to aerc.
Has there been any decisions made regarding the possible implementation
or configuration?

My current idea for configuration, contains a [colors] sections in the
aerc.conf file. This would contain the default tcell style and
subsection that would work for specific objects.

```
[colors]
bg=ColorGreen
fg=ColorWhite

[PATCH v2] Contextual UI Configuration 24 days ago

From Srivathsan Murali to ~sircmpwn/aerc

+ Adds parsing of contextual ui sections to aerc config.
+ Add GetUiConfig method for AercConfig that is used to get the
  specialized UI config.
+ Add UiConfig method to AccountView to get specialized UI Config.
+ Modifies Aerc codebase to use specialized UIConfig instead.
+ Adds documentation for Contextual UI Configuration
---
Finaly got time to work on v2 of this patch, made changes according
to Drew's feedback from the last version.
Also added subject context to have specific index-format for patches.

Happy new year folks :D

 config/config.go      | 110 ++++++++++++++++++++++++++++++++++++++----
[message trimmed]

[PATCH] [template] Fix double >\n when quoting empty line 2 months ago

From Srivathsan Murali to ~sircmpwn/aerc

---
This just bothered me . Not sure if this expected behabiour.

 lib/templates/template.go | 1 +
 1 file changed, 1 insertion(+)

diff --git a/lib/templates/template.go b/lib/templates/template.go
index a2f35e24fe07..21f7b35d73ff 100644
--- a/lib/templates/template.go
+++ b/lib/templates/template.go
@@ -116,6 +116,7 @@ func quote(text string) string {
	for _, line := range lines {
		if line == "" {
			quoted.WriteString(">\n")
[message trimmed]

Re: [PATCH] Add UI Config Specialization 2 months ago

From Srivathsan Murali to ~sircmpwn/aerc

> - let's call these kinds of configs "contextual" rather than special
Yeah was unsure of how to call it. I will change it to the next patch.

> - can we also see a proof-of-concept for changing the context based on
> the message? For example using subject matching to change the index
> format for patches
Interesting. I will take a stab at it.