hyprland-community / hyprland-autoname-workspaces

Hyprland autoname workspaces 🪟 [maintainers=@cyrinux,@maximbaz]
ISC License
192 stars 8 forks source link

feat: add regex capture support #73

Closed cyrinux closed 1 year ago

cyrinux commented 1 year ago

give the feature asked here https://github.com/hyprland-community/hyprland-autoname-workspaces/issues/69

This syntax is now supported

[title_in_class."(?i)foot"]
"emerge: (.+?/.+?)-.*" = "{match1}"
codecov[bot] commented 1 year ago

Codecov Report

Merging #73 (1eb12d8) into main (10ad640) will increase coverage by 1.56%. The diff coverage is 93.75%.

@@            Coverage Diff             @@
##             main      #73      +/-   ##
==========================================
+ Coverage   66.50%   68.06%   +1.56%     
==========================================
  Files           6        6              
  Lines         406      429      +23     
==========================================
+ Hits          270      292      +22     
- Misses        136      137       +1     
Impacted Files Coverage Δ
src/config/mod.rs 91.11% <ø> (ø)
src/renamer/mod.rs 8.65% <ø> (ø)
src/renamer/icon.rs 95.68% <92.85%> (-0.19%) :arrow_down:
src/renamer/formatter.rs 94.73% <100.00%> (+0.23%) :arrow_up:

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more