Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: Expose switch slot function - Current slot StatusLine becomes stale #20

Open
2 tasks done
Ajaymamtora opened this issue May 29, 2024 · 2 comments
Open
2 tasks done
Labels
enhancement New feature or request Stale

Comments

@Ajaymamtora
Copy link

Ajaymamtora commented May 29, 2024

Checklist

  • I have read the plugin's documentation.
  • The feature would be useful to more users than just me.

Feature Requested

I'm unable to trigger a StatusLine update while pressing Ctrl-Q because no event is triggered.

This is the component for hairline that I've created:

  local nvim_recorder_slots = {
    hl = { fg = colours.current_single_tab_fg, bold = true },
    provider = function()
      if vim.fn.reg_recording() ~= "" then
        return require("recorder").recordingStatus()
      else
        return require("recorder").displaySlots()
      end
    end,
    update = {
      "RecordingEnter",
      "RecordingLeave",
    },
  }

But it won't update the current slot until I trigger / leave a recording. If you expose the function or emit an event, I could declare it in the update section or bind manually and trigger my own event through vim.api.nvim_exec_autocmds('User', { pattern = 'MyCustomEvent' })

Relevant Screenshot

No response

@Ajaymamtora Ajaymamtora added the enhancement New feature or request label May 29, 2024
Copy link

This issue has been automatically marked as stale.
If this issue is still affecting you, please leave any comment, for example "bump", and it will be kept open.

@github-actions github-actions bot added the Stale label Nov 27, 2024
@Ajaymamtora
Copy link
Author

This issue has been automatically marked as stale.
If this issue is still affecting you, please leave any comment, for example "bump", and it will be kept open.

Bump

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request Stale
Projects
None yet
Development

No branches or pull requests

1 participant