Closed abeldekat closed 4 days ago
Remarks:
The name current_dir
: Only the value of variable current_dir
indicates that this is a boolean.
System call vim.loop.os_uname()
is always executed, also when current_dir
is not supplied.
Would this approach be appropriate?
Thanks for the PR!
I appreciate the exact copy of the approach from 'mini.starter' (I'd usually do that too), however I think the better approach here is to use plain vim.startswith()
with cwd .. '/'
. As far as I remember, built-in paths coming from Neovim always use forward slash. If not, we'll wait for a Windows user to report.
I've merged in the temporary branch to polish up a bit.
Thanks again for following through!
This should now be part of latest main
.
Thank you!
Reference: This discussion
In my workflow, each project is opened in a
tmux
session. As such, when queryingoldfiles
, I am mostly interested in files inside the current working directory.MiniExtra.pickers.oldfiles()
currently does not filter oncwd
This PR adds flag "current_dir" to
MiniExtra.pickers.oldfiles()