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

I suggest set a filetype to the log file open by :Rocks log #622

Closed
winkee01 opened this issue Jan 16, 2025 · 1 comment
Closed

I suggest set a filetype to the log file open by :Rocks log #622

winkee01 opened this issue Jan 16, 2025 · 1 comment
Labels
enhancement New feature or request

Comments

@winkee01
Copy link

I checked the source code, and I think it's a good idea to set a filetype to the buffer open by command :Rocks log

the code related is log.lua

function log.open_logfile()
    vim.cmd.e(log.get_logfile())
end

How about add

function log.open_logfile()
    vim.cmd.e(log.get_logfile())
    vim.bo.filetype = "rockslog"
end

by that, I can set up a smart close with q.

@mrcjkb
Copy link
Member

mrcjkb commented Jan 21, 2025

Closing as YAGNI for now.

@mrcjkb mrcjkb closed this as not planned Won't fix, can't repro, duplicate, stale Jan 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants