mods icon indicating copy to clipboard operation
mods copied to clipboard

Feature request: Parsing option for mods --dirs

Open vlermandac opened this issue 2 months ago • 0 comments

Hi, ty for all your work. I love the charm projects :)

I've been using mods within scripts and alongside other programs, and it doesn't feel right for me that when I have to get the chat histories, I write the full path just because I know it through 'mods --dirs'. I think it would be useful (and elegant) to have the option to get the paths already parsed.

A solution is to accept an extra argument when using --dirs, e.g., 'mods --dirs config', 'mods --dirs cache', or to split the option in two. e.g. 'mods --config', 'mods --cache'. I know there is the --settings option, idk, I don't quite like that opens an editor by itself (it might just be me).

A workaround is just to parse it yourself like: 'cd $(mods --dirs | grep "Cache" | sed 's/Cache://')', 'nvim $(mods --dirs | grep "Configuration" | sed 's/Configuration://')'

I know this FR might be a little picky, and that there is not a correct way to make such an option, but at least I wanted to discuss it.

vlermandac avatar Apr 30 '24 18:04 vlermandac