{"id":17693741,"url":"https://github.com/anufrievroman/neomutt-file-picker","last_synced_at":"2025-08-24T11:38:40.397Z","repository":{"id":61497132,"uuid":"267485528","full_name":"anufrievroman/neomutt-file-picker","owner":"anufrievroman","description":"Attach and save files in NeoMutt using Ranger or Vifm as your file picker","archived":false,"fork":false,"pushed_at":"2022-10-06T08:39:08.000Z","size":8,"stargazers_count":15,"open_issues_count":2,"forks_count":5,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-13T03:47:38.279Z","etag":null,"topics":["mutt","neomutt","ranger","vifm"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/anufrievroman.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-05-28T03:37:14.000Z","updated_at":"2025-03-31T11:04:25.000Z","dependencies_parsed_at":"2022-10-19T22:15:39.603Z","dependency_job_id":null,"html_url":"https://github.com/anufrievroman/neomutt-file-picker","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/anufrievroman/neomutt-file-picker","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anufrievroman%2Fneomutt-file-picker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anufrievroman%2Fneomutt-file-picker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anufrievroman%2Fneomutt-file-picker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anufrievroman%2Fneomutt-file-picker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/anufrievroman","download_url":"https://codeload.github.com/anufrievroman/neomutt-file-picker/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anufrievroman%2Fneomutt-file-picker/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271854475,"owners_count":24834453,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-24T02:00:11.135Z","response_time":111,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["mutt","neomutt","ranger","vifm"],"created_at":"2024-10-24T13:46:49.652Z","updated_at":"2025-08-24T11:38:40.340Z","avatar_url":"https://github.com/anufrievroman.png","language":"Shell","funding_links":[],"categories":["Shell"],"sub_categories":[],"readme":"# NeomuttFilePicker\n\n- Attach files to your emails in [NeoMutt](https://github.com/neomutt/) using [Ranger](https://github.com/ranger/ranger) or [Vifm](https://github.com/vifm) as your file manager.\n- Choose a directory to store attachments with Ranger or Vifm\n\nThe main script is based on the [this topic](https://www.reddit.com/r/commandline/comments/cbxvdf/combine_neomutt_with_ranger/) and improved to allow attaching mulptiple files with spaces in the name and path.\n\n## Attaching files\n\n1. Copy the `filepicker` file to your `.config/mutt` or wherever is your config directory.\n2. Add the following line to your `.muttrc` so that you can attach files with `A`\n\n```\nmacro compose A \"\u003cshell-escape\u003ebash $HOME/.config/mutt/filepicker\u003center\u003e\u003center-command\u003esource $HOME/.config/mutt/tmpfile\u003center\u003e\u003cshell-escape\u003ebash $HOME/.config/mutt/filepicker clean\u003center\u003e\" \"Attach with your file manager\"\n```\n3. Now, on the email sending screen (when you already wrote the text and saved it) type `A` instead of standard `a` to call the script. The file manager should appear. Choose files that you want to attach (tag them if multiple files) and hit Enter. Hit Enter twice more when asked. \n\n## Saving attachments\n\n1. Copy the `dirpicker` file to your `.config/mutt` or wherever is your config directory.\n2. Add the following line to your `.muttrc` so that you can choose the folder where to store files with `S`\n\n```\nmacro attach S \"\u003cshell-escape\u003ebash $HOME/.config/mutt/dirpicker\u003center\u003e\u003center-command\u003esource $HOME/.config/mutt/tmpfile\u003center\u003eo\" \"Choose folder with ranger\"\n```\n3. Now, on the attachment screen (by default, reached with `v`), type `S` instead of standard `s` to call the script. The file manager should appear. Choose the folder with ranger, quit with `q`. Mutt may then ask for the filename in the folder. \n\n## Settings\n\nIn the `filepicker` and `dirpicker` files you can choose which file manager to use. Ranger by default, but you can uncomment Vifm and comment Ranger if you like.\n\n## Issues\n\n- You might need to make the script executable if you have error about permissions. For example: `chmod =rwx filepicker`\n\n## TODO \n\n- The dirpicker should be adapted to handle several attachments at once (perhaps with ripmime or munpack?)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanufrievroman%2Fneomutt-file-picker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fanufrievroman%2Fneomutt-file-picker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanufrievroman%2Fneomutt-file-picker/lists"}