You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+2-1Lines changed: 2 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -65,11 +65,12 @@ nix run 'github:max-amb/nix-tree' <your filename>
65
65
## Limitations
66
66
This program obviously is not perfect, hence there are some limitations that should be taken into account by the user:
67
67
* The program cannot currently parse the `let in` combination or any flake for that matter
68
-
* The syntax "..." = ..., often found in home manager is not supported
68
+
*~~The syntax "..." = ..., often found in home manager is not supported~~ Now is after some more complex regex matching
69
69
* One example that doesn't work is code that has groups inside of sections, like `[ { ... } ]`, this will break the program for now
70
70
*~~It may not be able to handle multiline strings often found in `extraConfig` options~~ The program can take them as input but has no way of displaying different lines or outputting different lines
71
71
* Comments done with `/* */` aren't stored for re-attachment as they are often inside clauses
72
72
73
73
## Credits
74
74
* The test configuration `./tests/example_configurations/pms_example_config.nix` comes from [here](https://perfectmediaserver.com/02-tech-stack/nixos/configuration.nix/)
75
75
* The test configuration `./tests/example_configurations/yasu_example_config.nix` comes from [here](https://discourse.nixos.org/t/configuration-nix-home-nix-examples/8185)
76
+
* The test configuration `./tests/example_configurations/shortened_default.nix` comes from the default nix configuration
# The 3rd group is non greedy to make a.'b'.c = 'x' paths work
216
217
path=match.group(2)[:-1]
217
218
variable="'"+match.group(3) +"'"
219
+
elifmatch:=re.search(r"(Added|Delete|Change) (.*)=(.*)( type: Types.(STRING|BOOL|UNIQUE|LIST|INT))?$", action): # String path but not string var like a.'b'.c = true
220
+
path=match.group(2)
221
+
variable=match.group(3)
218
222
else:
219
223
raiseErrorComposingFileFromTree(message="Was unable to parse actions to apply to tree")
0 commit comments