NeogitOrg / NeogitOrg/neogit

Automatically refresh upon `BufEnter`?

Open
#1,682 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Lua
Stars
5.6k
Forks
357
Avg merge
15h 47m
Merged PRs (30d)
2

Description

Wouldn't it make sense to add BufEnter to this autocmd? I'm finding myself having to manually refresh all the time. Since it's async I don't think this would freeze the UI at all. Maybe an option could be added?

EDIT: I misunderstood the point of this autocommand in particular. Please ignore.

https://github.com/NeogitOrg/neogit/blob/757c74cf4d5765d39370ebb48cbcf1ea44c2f84d/lua/neogit/autocmds.lua#L22-L38

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The request points to lua/neogit/autocmds.lua at lines 22-38. The author later says they misunderstood this autocmd and asks readers to ignore the request, so confirm that the behavior is still wanted before making any change.

Written by the indexing model from the issue text.

Assessment

Tech stack
git, lua
Domain
tooling
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
15/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.