https://github.com/chrisgrieser/nvim-early-retirement
Send buffers into early retirement by automatically closing them after x minutes of inactivity.
Science Score: 36.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
○DOI references
-
✓Academic publication links
Links to: researchgate.net -
○Committers with academic emails
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (9.0%) to scientific vocabulary
Keywords
Keywords from Contributors
Repository
Send buffers into early retirement by automatically closing them after x minutes of inactivity.
Basic Info
Statistics
- Stars: 225
- Watchers: 2
- Forks: 5
- Open Issues: 0
- Releases: 0
Topics
Metadata Files
README.md
nvim-early-retirement 👴👵
Send buffers into early retirement by automatically closing them after x minutes of inactivity.
Makes the bufferline or :bnext less crowded.
Installation
```lua -- packer use { "chrisgrieser/nvim-early-retirement", config = function () require("early-retirement").setup() end, }
-- lazy.nvim { "chrisgrieser/nvim-early-retirement", config = true, event = "VeryLazy", }, ```
Configuration
```lua defaultOpts = { -- If a buffer has been inactive for this many minutes, close it. retirementAgeMins = 20,
-- Filetypes to ignore.
ignoredFiletypes = {},
-- Ignore files matching this lua pattern; empty string disables this setting.
ignoreFilenamePattern = "",
-- Will not close the alternate file.
ignoreAltFile = true,
-- Minimum number of open buffers for auto-closing to become active. E.g.,
-- by setting this to 4, no auto-closing will take place when you have 3
-- or fewer open buffers. Note that this plugin never closes the currently
-- active buffer, so a number < 2 will effectively disable this setting.
minimumBufferNum = 1,
-- Ignore buffers with unsaved changes. If false, the buffers will
-- automatically be written and then closed.
ignoreUnsavedChangesBufs = true,
-- Ignore non-empty buftypes, for example terminal buffers
ignoreSpecialBuftypes = true,
-- Ignore visible buffers. Buffers that are open in a window or in a tab
-- are considered visible by vim. ("a" in `:buffers`)
ignoreVisibleBufs = true,
-- ignore unloaded buffers. Session-management plugin often add buffers
-- to the buffer list without loading them.
ignoreUnloadedBufs = false,
-- Show notification on closing. Works with plugins like nvim-notify.
notificationOnAutoClose = false,
-- When a file is deleted, for example via an external program, delete the
-- associated buffer as well. Requires Neovim >= 0.10.
-- (This feature is independent from the automatic closing)
deleteBufferWhenFileDeleted = false,
-- Function to delete the buffer. The argument provided to the function is
-- the buffer number. If nothing is provided the plugin will just call
-- nvim_buf_delete.
deleteFunction = nil,
} ```
[!NOTE] You can also have
nvim-early-retirementignore certain buffers by settingvim.b.ignore_early_retirement = true.
Similar Plugins
- Close unedited files: hbac
Credits
Thanks
To @nikfp and @xorg-dogma on Discord for their help.
About Me
In my day job, I am a sociologist studying the social mechanisms underlying the
digital economy. For my PhD project, I investigate the governance of the app
economy and how software ecosystems manage the tension between innovation and
compatibility. If you are interested in this subject, feel free to get in touch.
Profiles
- Discord
- Academic Website
- GitHub
- Twitter
- ResearchGate
- LinkedIn
Owner
- Name: Chris Grieser
- Login: chrisgrieser
- Kind: user
- Location: Berlin, Germany
- Company: Technical University of Berlin
- Website: https://chris-grieser.de/
- Repositories: 189
- Profile: https://github.com/chrisgrieser
Researcher in sociology & software developer
GitHub Events
Total
- Issues event: 2
- Watch event: 45
- Delete event: 3
- Issue comment event: 5
- Push event: 23
- Pull request event: 8
- Fork event: 1
- Create event: 3
Last Year
- Issues event: 2
- Watch event: 45
- Delete event: 3
- Issue comment event: 5
- Push event: 23
- Pull request event: 8
- Fork event: 1
- Create event: 3
Committers
Last synced: 9 months ago
Top Committers
| Name | Commits | |
|---|---|---|
| Chris Grieser | 7****r | 113 |
| ilan schemoul | i****l@g****m | 1 |
| dependabot[bot] | 4****] | 1 |
| Nerijus Mika | n****a@g****m | 1 |
| Alejandro Maturrano | t****p@p****m | 1 |
Issues and Pull Requests
Last synced: 9 months ago
All Time
- Total issues: 9
- Total pull requests: 6
- Average time to close issues: 4 months
- Average time to close pull requests: about 3 hours
- Total issue authors: 9
- Total pull request authors: 5
- Average comments per issue: 3.78
- Average comments per pull request: 1.67
- Merged pull requests: 5
- Bot issues: 0
- Bot pull requests: 2
Past Year
- Issues: 0
- Pull requests: 3
- Average time to close issues: N/A
- Average time to close pull requests: 36 minutes
- Issue authors: 0
- Pull request authors: 2
- Average comments per issue: 0
- Average comments per pull request: 0.33
- Merged pull requests: 3
- Bot issues: 0
- Bot pull requests: 2
Top Authors
Issue Authors
- nmrtv (1)
- Aasim-A (1)
- ouuan (1)
- alexxGmZ (1)
- akhilman (1)
- kamalmarhubi (1)
- snoblenet (1)
- npx (1)
Pull Request Authors
- dependabot[bot] (5)
- TM10YMhp (2)
- ilan-schemoul (2)
- nmrtv (1)
- akhilman (1)
Top Labels
Issue Labels
Pull Request Labels
Dependencies
- actions/checkout v2 composite
- kdheepak/panvimdoc main composite
- stefanzweifel/git-auto-commit-action v4 composite
- JohnnyMorganz/stylua-action v2 composite
- actions/checkout v3 composite