Skip to content

Instantly share code, notes, and snippets.

View flatcap's full-sized avatar
🥾
Hiking in Scotland

Richard Russon flatcap

🥾
Hiking in Scotland
View GitHub Profile
@flatcap
flatcap / functions.md
Last active January 19, 2021 19:42
neomutt compose functions

Compose Functions

Envelope

Envelope

Function OpCode Description
`` OP_COMPOSE_AUTOCRYPT_MENU show autocrypt compose menu options
@flatcap
flatcap / nntp.rc
Created February 3, 2021 10:48
neomutt nntp example config
set newsrc = "~/.newsrc" # File containing list of subscribed newsgroups
set news_cache_dir = "~/.neomutt" # Directory for cached news articles
# set catchup_newsgroup = ask-yes # Mark all articles as read when leaving a newsgroup
# set nntp_context = 1000 # Maximum number of articles to list (0 for all articles)
# set nntp_poll = 60 # Interval between checks for new posts
set news_server = "news://nntp.lore.kernel.org"
set folder = "$news_server"
@flatcap
flatcap / config-rename.md
Last active February 13, 2021 15:27
Suggested renaming of NeoMutt Config
Old Name New Name Description
askbcc ask_bcc Ask the user for the blind-carbon-copy recipients
askcc ask_cc Ask the user for the carbon-copy recipients
autoedit auto_edit Skip the initial compose menu and edit the email
confirmappend confirm_append Confirm before appending emails to a mailbox
confirmcreate confirm_create Confirm before creating a new mailbox
crypt_autoencrypt crypt_auto_encrypt Automatically PGP encrypt all outgoing mail
crypt_autopgp crypt_auto_pgp Al
@flatcap
flatcap / enter_after.gv
Created February 18, 2021 14:24
refactor enter_field
digraph enter_field
{
graph [
rankdir="LR"
nodesep="0.2"
ranksep="0.5"
compound="true"
]
node [
@flatcap
flatcap / pager-deps.gv
Last active March 5, 2021 13:24
neomutt pager deps
digraph display_line
{
graph [
rankdir="LR"
nodesep="0.2"
ranksep="0.5"
compound="true"
]
node [
@flatcap
flatcap / helpers.c
Created March 10, 2021 11:50
neomutt config helpers
const bool c_abort_backspace = cs_subset_bool (NeoMutt->sub, "abort_backspace"); // C_AbortBackspace
const char *c_abort_key = cs_subset_string (NeoMutt->sub, "abort_key"); // C_AbortKey
const bool c_arrow_cursor = cs_subset_bool (NeoMutt->sub, "arrow_cursor"); // C_ArrowCursor
const char *c_arrow_string = cs_subset_string (NeoMutt->sub, "arrow_string"); // C_ArrowString
const bool c_ascii_chars = cs_subset_bool (NeoMutt->sub, "ascii_chars"); // C_AsciiChars
const bool c_ask_bcc = cs_subset_bool (NeoMutt->sub, "ask_bcc"); // C_AskBcc
const bool c_ask_cc = cs_subset_bool (NeoMutt->sub, "ask_cc"); // C_AskCc
const char
@flatcap
flatcap / synonyms.md
Created March 25, 2021 12:40
Documenting Config Synonyms

Magic Synonym Documentation

Historic renames, leading to duplicates -- IGNORE

Old name New Name
$pgp_autoencrypt $crypt_auto_encrypt
$pgp_autosign $crypt_auto_sign
$pgp_replyencrypt $crypt_reply_encrypt
$pgp_replysign $crypt_reply_sign
@flatcap
flatcap / attach.gv
Last active March 26, 2021 00:18
view attachment
digraph windows
{
graph [
rankdir="LR"
nodesep="0.2"
ranksep="0.5"
compound="true"
]
node [
@flatcap
flatcap / functions.txt
Created March 31, 2021 15:31
Index/Pager shared functions
pager-only functions (7)
bottom OP_PAGER_BOTTOM
mark-as-new OP_TOGGLE_NEW
search-toggle OP_SEARCH_TOGGLE
skip-headers OP_PAGER_SKIP_HEADERS
skip-quoted OP_PAGER_SKIP_QUOTED
toggle-quoted OP_PAGER_HIDE_QUOTED
top OP_PAGER_TOP
@flatcap
flatcap / map2
Last active April 26, 2021 12:24
window map
https://github.com/neomutt/gfx/raw/master/screenshots/window/
Base Windows
WT_ROOT
WT_HELP_BAR
WT_ALL_DIALOGS
...
WT_MESSAGE