~rockorager

St. Paul, MN

https://timculverhouse.com/

~rockorager/tcell-term

Last active 10 days ago

~rockorager/offmap

Last active 21 days ago

~rockorager/tree-sitter-hare

Last active 3 months ago

~rockorager/go-jmap-devel

Last active 7 months ago

~rockorager/go-jmap-announce

Last active 7 months ago
View more

Recent activity

[PATCH hare] bufio::scan_rune: properly read last 3 bytes 2 days ago

From Tim Culverhouse to ~sircmpwn/hare-dev

bufio::scan_rune returns io::EOF if it encounters an io::EOF during the
scan_readahead call. However, this call is made when the pending bytes
are < 4. The result is that if you will read EOF when you have 3 bytes
left in the buffer, leaving them unaccessible.

Only return io::EOF if the scan.pending is 0 after the call to
scan_readahead. Add a test for this behavior.

Signed-off-by: Tim Culverhouse <tim@timculverhouse.com>
---
 bufio/scanner.ha | 14 +++++++++++++-
 1 file changed, 13 insertions(+), 1 deletion(-)

diff --git a/bufio/scanner.ha b/bufio/scanner.ha
[message trimmed]

Re: [PATCH aerc] search: implement inverted search 5 days ago

From Tim Culverhouse to ~rjarry/aerc-devel

On Sun Mar 19, 2023 at 4:53 PM CDT, Moritz Poldrack wrote:
> On Sun Mar 19, 2023 at 10:46 PM CET, Tim Culverhouse wrote:
> > Implement inverted search via flags or '!' prefixes. Complex searches
> > can chained, however their exact functionality on IMAP servers is not
>      ^
>      ` be?

Woops

> > always the same. In general, capital letter flags will invert, and
> > generic terms for subject, -b, or -a can be inverted with a "!" prefix.
>
> I think it should be consistent… preferrably only the capital letters or
> is there a deeper reasoning? For "normal" search terms the known -v from

[PATCH aerc] search: implement inverted search 6 days ago

From Tim Culverhouse to ~rjarry/aerc-devel

Implement inverted search via flags or '!' prefixes. Complex searches
can chained, however their exact functionality on IMAP servers is not
always the same. In general, capital letter flags will invert, and
generic terms for subject, -b, or -a can be inverted with a "!" prefix.

Search for messages from rjarry, that don't have the word "templates" in
the subject:
	:search -f rjarry !templates

Search for messages NOT from rjarry, but that DO include "patch" in the
body:
	:search -F rjarry -b patch

Signed-off-by: Tim Culverhouse <tim@timculverhouse.com>
[message trimmed]

Re: Multiple Sessions Emulator like TMUX 10 days ago

From Tim Culverhouse to ~rockorager/tcell-term

On Wed Mar 15, 2023 at 12:12 AM CDT, Pratik Panda wrote:
> Hello Tim
> I was able to follow the example code and create a terminal. Now I
> wanted to have something like tmux in my application - where there
> would be a tabbed interface to switch between different terminals. How
> do I proceed with this kind of feature with tcell-term

Hey Pratik -

In order to do this you'll need to familiarize yourself with tcell.
tcell-term is just a widget that can be used with host applications.

To start I'd read through tcell examples and learn how to make the
tabbed interface and switch between views with it. Then it's just a

Re: Multiple Sessions Emulator like TMUX 11 days ago

From Tim Culverhouse to ~rockorager/tcell-term

On Tue Mar 14, 2023 at 2:17 AM CDT, Pratik Panda wrote:
> Hello Everyone!
> This is my first email to the list and apologies if I make any mistakes.
> I am creating a TMUX-like simple clone for a project. I have played
> around with this a bit but could not figure this out.  Iwanted help on
> how to I implement this package with tcell pages/tabs such
> that it emulates somewhat similar to tmux sessions

Hey Pratik -

Thanks for trying out tcell-term. When you say you can't figure it out,
what exactly do you mean? Are you able to follow the example and create
a terminal in your application? Or is it the tab / pages portion?

Re: [PATCH aerc v3 0/8] templates styling 18 days ago

From Tim Culverhouse to ~rjarry/aerc-devel

On Mon Mar 6, 2023 at 5:09 PM CST, Robin Jarry wrote:
> v3: fixed thread subjects deduplication

Looks good, match and .StyleSwitch are awesome!

Reviewed-by: Tim Culverhouse <tim@timculverhouse.com>

[PATCH aerc v2 11/11] directory: add role to template fields 18 days ago

From Tim Culverhouse to ~rjarry/aerc-devel

Add .Role as a template field for use in distinguishing between mailboxes with a
given IANA role, or custom role defined by aerc ("query" for notmuch queries,
for example).

Signed-off-by: Tim Culverhouse <tim@timculverhouse.com>
---
 commands/commands.go     |  4 ++--
 config/templates.go      |  1 +
 doc/aerc-templates.7.scd |  6 ++++++
 lib/state/templates.go   | 18 ++++++++++++------
 widgets/account.go       |  2 +-
 widgets/compose.go       |  4 ++--
 widgets/dirlist.go       |  2 +-
 widgets/dirtree.go       | 10 +++++++++-
[message trimmed]

[PATCH aerc v2 10/11] directory: add IANA mailbox roles 18 days ago

From Tim Culverhouse to ~rjarry/aerc-devel

Add IANA registered mailbox role, and a custom aerc role "query". This
will be used in subsequent commits which add the Role field to
templates, allowing users to style mailbox by IANA role, or style
notmuch queries differently than maildir dirs when using the notmuch
worker + maildir option.

Signed-off-by: Tim Culverhouse <tim@timculverhouse.com>
---
 models/models.go         | 27 +++++++++++++++++++++++++++
 worker/imap/list.go      | 21 ++++++++++++++++++---
 worker/notmuch/worker.go |  1 +
 3 files changed, 46 insertions(+), 3 deletions(-)

diff --git a/models/models.go b/models/models.go
[message trimmed]

[PATCH aerc v2 09/11] directory: use directory to store rue counts 18 days ago

From Tim Culverhouse to ~rjarry/aerc-devel

Store the Directory RUE counts on the Directory data model. Use
DirectoryInfo messages to update the Directory model. Access Directories
via the dirlist instead of via the msgstore. Remove unused fields on
DirectoryInfo, all backends now give accurate counts.

Move refetch logic into dirlist

Signed-off-by: Tim Culverhouse <tim@timculverhouse.com>
---
 lib/dirstore.go          |  4 ++++
 lib/msgstore.go          |  7 ------
 models/models.go         | 16 ++++++-------
 widgets/account.go       | 28 ++++++++---------------
 widgets/dirlist.go       | 49 ++++++++++++++++++++++------------------
[message trimmed]

[PATCH aerc v2 08/11] imap: update directory on flag ops 18 days ago

From Tim Culverhouse to ~rjarry/aerc-devel

All other backends automatically update directory counts by sending a
directory info when a flag operation is performed. Unify the imap
backend to this model by posting a CheckMail action, which requests an
updated status from the server and posts a DirectoryInfo message

Signed-off-by: Tim Culverhouse <tim@timculverhouse.com>
---
 worker/imap/flags.go | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/worker/imap/flags.go b/worker/imap/flags.go
index 180bc261bbc7..945597df0525 100644
--- a/worker/imap/flags.go
+++ b/worker/imap/flags.go
[message trimmed]