Oh-my-posh3: Feature Request: Support regex patterns for ignore_folders

Created on 24 Nov 2020  路  4Comments  路  Source: JanDeDobbeleer/oh-my-posh3

Prerequisites

  • [X] I have read and understand the CONTRIBUTING guide
  • [X] I looked for duplicate issues before submitting this one

Description

It would be cool to be able to specify regex patterns for the "ignore_folders" property. Currently, it seems to require being an exact match to the full path (so it doesn't even match sub-directories).

Probably should be a separate property (e.g. "ignore_folders_regex") so as to not be a breaking change to existing configurations.

(it would also be cool to have a property that does the opposite--i.e. the segment will only be used if there IS a match)

My goal is to have some conditional "extras" that only show when I'm in certain project folders.

feat

All 4 comments

I don't think this is impossible, let's try it.

would be nice to have the same for the mappedLocations in the path segment.

@DotNetSparky good news, it's backwards compatible AND you can choose to do the opposite as well using a negative lookahead. The docs will contain all information to get this up and running.

@lnu can you create a new issue for the mapped_locations regex?

@JanDeDobbeleer - That is awesome, thank-you!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

MJECloud picture MJECloud  路  6Comments

audunn picture audunn  路  6Comments

Cruik picture Cruik  路  9Comments

tillig picture tillig  路  8Comments

meakbiyik picture meakbiyik  路  9Comments