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
I am writing a script whereby pressing right enters a directory, and left does a cd to the parent directory and lists fzf items with fd again. Since left actually feels like a "Go back to the parent folder" key after entering a directory, I would like it to remember the position of the directory that was explored in the first place.
Unfortunately, I don't think I can save FZF_POS when entering the folder and then use the pos($FZF_POS) action when going back because the action would be triggered on a new key press, while in my case when I press left, there's a new round of fd <args> | fzf before showing the list again.
I have tried start:pos($FZF_POS)" (see below), but no luck. Is there a trick I could use?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I am writing a script whereby pressing
right
enters a directory, andleft
does acd
to the parent directory and listsfzf
items withfd
again. Sinceleft
actually feels like a "Go back to the parent folder" key after entering a directory, I would like it to remember the position of the directory that was explored in the first place.Unfortunately, I don't think I can save
FZF_POS
when entering the folder and then use thepos($FZF_POS)
action when going back because the action would be triggered on a new key press, while in my case when I pressleft
, there's a new round offd <args> | fzf
before showing the list again.I have tried
start:pos($FZF_POS)"
(see below), but no luck. Is there a trick I could use?Beta Was this translation helpful? Give feedback.
All reactions