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

Set default parameters globally, based on extension #459

Open
iloveitaly opened this issue Oct 25, 2023 · 3 comments
Open

Set default parameters globally, based on extension #459

iloveitaly opened this issue Oct 25, 2023 · 3 comments
Labels
enhancement New feature or request question Further information is requested

Comments

@iloveitaly
Copy link
Contributor

Is it possible to change the --section param based on the file extension? I'm using bat, I wonder if there's a way to send over some metadata or somehow combine the two?

When paging a .py file it would be great to have def|class pre-filled as the --section

@noborus
Copy link
Owner

noborus commented Oct 25, 2023

Thank you for the issue.
I think it's a good idea, but I'm wondering if auto-detecting based on extension is a good idea.
(in the case of bat, the file name is not passed so I need another method).

For now, it is possible to set SectionDelimiter in the view mode and switch it at once.
If I were to implement it, I would implement it to tie this in with the extension.

@iloveitaly
Copy link
Contributor Author

Ah, view mode is really cool! Exactly what I was looking for! That works great.

@noborus
Copy link
Owner

noborus commented Oct 27, 2023

thank you.
I would take the time to think about it, since automatic detection can end up doing the wrong thing.

@noborus noborus added enhancement New feature or request question Further information is requested labels Jan 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants