skywind3000 / z.lua

:zap: A new cd command that helps you navigate faster by learning your habits.
MIT License
2.94k stars 137 forks source link

Fixes and docs for the ranger plugin #165

Closed ilyagr closed 1 year ago

ilyagr commented 1 year ago

Makes Ranger plugin use the standard $ZLUA_LUAEXE and $ZLUA_SCRIPT environment variables that z.lua, fixes error handling, adds docs.

ilyagr commented 1 year ago
ilyagr commented 1 year ago

I split this PR into two commits: the first one has all the important changes in a small diff. The second one consists only of stylistic changes but has a larger diff.

Let me know if I should combine them into one commit, remove the second one, etc.

skywind3000 commented 1 year ago

thanks

ilyagr commented 1 year ago

Thank you! I also realized there's a FAQ entry about ranger integration. You probably should delete the portion that says

and set environment variable in your shell rc: export RANGER_ZLUA="/path/to/z.lua"

Or, perhaps, just replace the entry with a link to the relevant portion of README.md.