How to Go Back to Previously Visited Folder? Topic is solved

You have encountered a problem using Far Manager? Here you can get help.
Post Reply
CoolCat83
Posts: 11
Joined: Wed 04 Feb, 2026 19:21

How to Go Back to Previously Visited Folder?

Post by CoolCat83 »

A question is pretty straight forward. Let's say, I am browsing,
C:\users\username\Desktop\Folder1
And then I go to
C:\users\username\Documents\Folder2
Now, if I want to switch back to the previous directory/folder, is there a quick keyboard shortcut to do this?
cyberwolf
Posts: 115
Joined: Tue 24 Mar, 2009 14:39
Has thanked: 4 times
Been thanked: 3 times

How to Go Back to Previously Visited Folder?

Post by cyberwolf »

I'ts not "1 key", but you can use Far's folder navigation history, available when pressing "Alt + F12", so you could press "Alt + F12" followed by "Arrow Up" and the "Enter".

Of course, you can also use a macro, something along the lines :
(just save the file as <FAR>\Profile\Macros\Scripts\Shell_CtrlBS.lua )

Code: Select all

Macro { 
  description="Change to previous folder on Ctrl + Backspace";
  area="Shell"; key="CtrlBS";
  flags="";
  code="Keys(\"AltF12 Up Enter\")";
}
Last edited by cyberwolf on Tue 17 Mar, 2026 16:49, edited 2 times in total.
Sorry for writing in English in the Russian forums, but i don't speak Russian and don't trust online translators. :D

"There’s no teacher who can teach anything new He can just help us to remember the things we always knew." ~ ENIGMA
Shmuel
Posts: 7230
Joined: Thu 23 Mar, 2006 21:36
Location: Israel
Has thanked: 48 times
Been thanked: 631 times

How to Go Back to Previously Visited Folder?

Post by Shmuel »

cyberwolf, it's not advisable to mess with the "internal" subfolder. For instance, you may unintentionally delete a macro there.
Better use "Macros\scripts", Far Manager treats this directory as read-only.

Code: Select all

Macro { 
  description="Change to previous folder on Ctrl + Backspace";
  area="Shell"; key="CtrlBS";
  action=function() Keys("AltF12 Up Enter") end;
}
cyberwolf
Posts: 115
Joined: Tue 24 Mar, 2009 14:39
Has thanked: 4 times
Been thanked: 3 times

How to Go Back to Previously Visited Folder?

Post by cyberwolf »

I've updated the path in my post, sorry, i recorded the macro and forgot to move it (or at least use the correct Macros\Scripts folder).
But you're right, we don't want to mess with the files in the internal folder as that can have some weird consequences (don't ask me how i know ;) )
Sorry for writing in English in the Russian forums, but i don't speak Russian and don't trust online translators. :D

"There’s no teacher who can teach anything new He can just help us to remember the things we always knew." ~ ENIGMA
Shmuel
Posts: 7230
Joined: Thu 23 Mar, 2006 21:36
Location: Israel
Has thanked: 48 times
Been thanked: 631 times

How to Go Back to Previously Visited Folder?

Post by Shmuel »

Macros/scripts has many advantages.
In particular, file names don't matter (as far as the extension is right).
You can keep multiple macros in one file and many other features.
You can read about that in %FARHOME%\Encyclopedia\macroapi_manual.en.chm,
User avatar
HaRT
Moderator
Posts: 11446
Joined: Tue 30 Aug, 2005 17:21
Has thanked: 270 times
Been thanked: 415 times

How to Go Back to Previously Visited Folder?

Post by HaRT »

Why invent a new macro with a new shortcut? See "%FARHOME%\Addons\Macros\Panel.AltBS.lua" — it handles errors better and also has the paired “go forward” macro.
Фар есть инструмент, а не нянька. © 2009 DrKnS
CoolCat83
Posts: 11
Joined: Wed 04 Feb, 2026 19:21

How to Go Back to Previously Visited Folder?

Post by CoolCat83 »

For reference, here is what I did.
  1. Copy Panel.AltBS.lua from Far manager\add ons\Macros to %Appdata%\roaming\Far Manager\Macros\Scripts folder.
  2. Restart FAR manager.
Keyboard Shortcuts
  • Alt+Backspace - Go to Previous Directory
  • Alt+Shift+Backsapace Go to Next directory
cyberwolf
Posts: 115
Joined: Tue 24 Mar, 2009 14:39
Has thanked: 4 times
Been thanked: 3 times

How to Go Back to Previously Visited Folder?

Post by cyberwolf »

HaRT wrote: Tue 17 Mar, 2026 20:13 Why invent a new macro with a new shortcut? See "%FARHOME%\Addons\Macros\Panel.AltBS.lua" — it handles errors better and also has the paired “go forward” macro.
Dang, somehow i missed that script. Thanks for pointing out that FAR already has the macro and it's better than my hastily thrown together version.
I should really look closer to the Addons folder.
Last edited by cyberwolf on Wed 25 Mar, 2026 12:57, edited 1 time in total.
Sorry for writing in English in the Russian forums, but i don't speak Russian and don't trust online translators. :D

"There’s no teacher who can teach anything new He can just help us to remember the things we always knew." ~ ENIGMA
Post Reply

Return to “Support and Troubleshooting”