ov icon indicating copy to clipboard operation
ov copied to clipboard

Set default parameters globally, based on extension

Open iloveitaly opened this issue 2 years ago • 3 comments

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

iloveitaly avatar Oct 25 '23 12:10 iloveitaly

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.

noborus avatar Oct 25 '23 13:10 noborus

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

iloveitaly avatar Oct 26 '23 13:10 iloveitaly

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

noborus avatar Oct 27 '23 02:10 noborus