Skip to content

Commit 77bf77e

Browse files
committed
add B for business archives
1 parent 3272696 commit 77bf77e

4 files changed

Lines changed: 18 additions & 0 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# Changelog
22

33
# 2026-04-16
4+
- **`B` move to Work/business** — press `B` to move marked or cursor email(s) to Work folder (similar to `A` for Archive); quick single-key action without screener list updates; shows friendly error if Work folder not configured; useful for rapid GTD-style email processing; complements existing `gb` (go to Work) and `Mb` (move to Work) shortcuts
45
- **Redesigned welcome screen** — new two-column layout with ASCII art logo, philosophy/getting started guide on the left, and essential shortcuts organized by category on the right; wider box (100 chars) with cleaner spacing; maintains kanagawa color scheme; more scannable and visually appealing for new users
56
- **ASCII logo in help overlay** — pressing `?` now shows the neomd ASCII art logo overlaid on the top-right corner of the help screen; shortcuts start immediately at the top without vertical space taken by the logo; logo only appears when scrolled to the top
67
- **`space+w` welcome shortcut** — press `space` then `w` to reopen the welcome screen anytime; useful for reviewing keybindings and getting started guide; documented in help overlay and keybindings reference

docs/content/docs/keybindings.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ To update both the help overlay and this document at once, edit that file and ru
5858
| `F` | mark as Feed → feed.txt + move to Feed |
5959
| `P` | mark as PaperTrail → papertrail.txt + move to PaperTrail |
6060
| `A` | archive (move to Archive, no screener update) |
61+
| `B` | move to Work/business (no screener update, if configured) |
6162
| `S` | dry-run screen inbox (loaded emails), then y/n |
6263

6364

internal/ui/keys.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ var HelpSections = []HelpSection{
4545
{"F", "mark as Feed → feed.txt + move to Feed"},
4646
{"P", "mark as PaperTrail → papertrail.txt + move to PaperTrail"},
4747
{"A", "archive (move to Archive, no screener update)"},
48+
{"B", "move to Work/business (no screener update, if configured)"},
4849
{"S", "dry-run screen inbox (loaded emails), then y/n"},
4950
}},
5051
{"Move (marked or cursor, no screener update)", [][2]string{

internal/ui/model.go

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2278,6 +2278,21 @@ func (m Model) updateInbox(msg tea.KeyMsg) (tea.Model, tea.Cmd) {
22782278
m.bulkProgress = m.newBulkOp("Archiving", len(targets))
22792279
return m, tea.Batch(m.spinner.Tick, m.batchMoveCmd(targets, m.cfg.Folders.Archive))
22802280

2281+
// B = move to Work/Business (pure move, no screener update)
2282+
case "B":
2283+
if m.cfg.Folders.Work == "" {
2284+
m.status = "Work folder not configured"
2285+
m.isError = true
2286+
return m, nil
2287+
}
2288+
targets := m.targetEmails()
2289+
if len(targets) == 0 {
2290+
return m, nil
2291+
}
2292+
m.loading = true
2293+
m.bulkProgress = m.newBulkOp("Moving to Work", len(targets))
2294+
return m, tea.Batch(m.spinner.Tick, m.batchMoveCmd(targets, m.cfg.Folders.Work))
2295+
22812296
// ── Auto-screen dry-run (Inbox only) ────────────────────────────
22822297
case ":":
22832298
m.cmdMode = true

0 commit comments

Comments
 (0)