Giter Club home page Giter Club logo

tmux-maildir-counter's Introduction

Tmux maildir counter

NOTE: This project is no longer in active development. Bugs and features requests won't get implemented by the project maintainers. We still welcome discussions and community pull requests, though.


Plugin that counts files on a specific mail directory.

If you use offlineimap to synchronize your emails with your computer, you can use this plugin to count how many emails you have in a specific folder and display in your tmux left or right status bar.

Shows how many unread emails I have in both my personal and work accounts: prefix_off

Usage

Add the list of folders you want to count to your tmux.conf. All folders must be separated by |.

set -g @maildir_counters '~/Mail/Personal/INBOX/new|~/Mail/Work/INBOX/new'

Then, add the maildir_counter to your left/right status bar where N is the index of the folder you want to show.

set -g status-right 'Personal: #{maildir_counter_1}, Work: #{maildir_counter_2} | %a %Y-%m-%d %H:%M'

If you want to get unread count, pass only the path of the IMAP folder and plugin will check cur and new subfolders, filter them and present any unread mail. Omit trailing slash.

set -g @maildir_counters '~/Mail/Personal/INBOX/new|~/Mail/Work/INBOX'

Then, add the maildir_unread_counter variable and set it to yes:

set -g @maildir_unread_counter 'yes'

Installation with Tmux Plugin Manager (recommended)

Add plugin to the list of TPM plugins:

set -g @plugin 'tmux-plugins/tmux-maildir-counter'

Press prefix + I to install it.

Manual Installation

Clone the repo:

$ git clone https://github.com/tmux-plugins/tmux-maildir-counter.git ~/clone/path

Add this line to your .tmux.conf:

run-shell ~/clone/path/tmux-maildir-counter.tmux

Reload TMUX environment with:

$ tmux source-file ~/.tmux.conf

License

MIT

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.