feature request: Limit going beyond the project folder (change actions.parent) #541
Closed
1 task done
Labels
enhancement
New feature or request
Did you check existing requests?
Describe the feature
(I can contribute with this feature if it is accepted)
Currently, actions.parent goes to the parent directory without any limitation. The idea would be to change this action so that it can go, at most, to the project folder. Currently, this can be achieved by creating a custom function like this:
and set in the oil configuration
Provide background
The main reason is because sometimes I accidentally go beyond the root of the project, and this can be uncomfortable. I even feel a bit scared of ruining my system files by accident or with some automation using oil. I think it would also be interesting to add an option in the config called
limit_parent="cwd"
with options such as cwd or root.What is the significance of this feature?
nice to have
Additional details
If this feature is accepted, I would like to know if you have any contribution guide to be able to contribute with this.
The text was updated successfully, but these errors were encountered: