https://github.com/chrisgrieser/nvim-early-retirement

Send buffers into early retirement by automatically closing them after x minutes of inactivity.

https://github.com/chrisgrieser/nvim-early-retirement

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

buffer-management neovim-plugin nvim-plugin

Keywords from Contributors

archival projection interactive generic sequences pdf-summarization reference-management text-object alfred-workflow genomics
Last synced: 6 months ago · JSON representation

Repository

Send buffers into early retirement by automatically closing them after x minutes of inactivity.

Basic Info
  • Host: GitHub
  • Owner: chrisgrieser
  • License: mit
  • Language: Lua
  • Default Branch: main
  • Homepage:
  • Size: 80.1 KB
Statistics
  • Stars: 225
  • Watchers: 2
  • Forks: 5
  • Open Issues: 0
  • Releases: 0
Topics
buffer-management neovim-plugin nvim-plugin
Created almost 3 years ago · Last pushed 6 months ago
Metadata Files
Readme Funding License

README.md

nvim-early-retirement 👴👵

badge

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-retirement ignore certain buffers by setting vim.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

Buy Me a Coffee at ko-fi.com

Owner

  • Name: Chris Grieser
  • Login: chrisgrieser
  • Kind: user
  • Location: Berlin, Germany
  • Company: Technical University of Berlin

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

All Time
  • Total Commits: 117
  • Total Committers: 5
  • Avg Commits per committer: 23.4
  • Development Distribution Score (DDS): 0.034
Past Year
  • Commits: 38
  • Committers: 3
  • Avg Commits per committer: 12.667
  • Development Distribution Score (DDS): 0.053
Top Committers
Name Email 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
enhancement (6) bug (2) Stale (2)
Pull Request Labels
dependencies (5) github_actions (4)

Dependencies

.github/workflows/panvimdoc.yml actions
  • actions/checkout v2 composite
  • kdheepak/panvimdoc main composite
  • stefanzweifel/git-auto-commit-action v4 composite
.github/workflows/stylua.yml actions
  • JohnnyMorganz/stylua-action v2 composite
  • actions/checkout v3 composite