Repository navigation
What has changed?
neomd 0.10.7 is a small release with one change: the attachment picker now remembers where you last attached a file. When you add several screenshots or documents to mails in a row, yazi opens in that folder instead of neomd's working directory, so you no longer navigate back to it each time.
Highlights
- The attachment picker opens in the last-used folder — after you attach a file with
aon the pre-send screen or<leader>ain nvim, its folder is remembered in~/.cache/neomd/attach_lastdir, and the next picker starts there. If that folder no longer exists, yazi opens where it did before. - Both pickers share the same folder — the pre-send
apicker and the nvim<leader>ahelper read and write the same file, so a pick in one is picked up by the other. - Several attachments in one go — this already worked and is now spelled out in the nvim picker title: mark files with
<Space>in yazi and press<Enter>to attach all of them at once. - Only for yazi — the remembered folder is used only when the picker is yazi. A custom
$NEOMD_FILE_PICKERis started as before, since it may not accept a start directory.
Fixes
- The attachment picker always started in neomd's working directory (for example a repository root), so every attachment meant navigating to the same folder again. It now starts in the folder of the last attached file.
See the Sending docs page for details on attachments and the file picker.