Skip to content

Feature request: Parsing option for mods --dirs #251

@vlermandac

Description

@vlermandac

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions