Set default parameters globally, based on extension
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
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.
Ah, view mode is really cool! Exactly what I was looking for! That works great.
thank you. I would take the time to think about it, since automatic detection can end up doing the wrong thing.