Closed alctny closed 1 month ago
I am pretty sure its already possible, or am I missing something?
[default_view]
keymap = [
{ keys = ["s"], commands = [":shell "] },
{ keys = ["S"], commands = ["shell bash"] },
{ keys = ["'"], commands = ["shell bash"] },
]
I am pretty sure its already possible, or am I missing something?
[default_view] keymap = [ { keys = ["s"], commands = [":shell "] }, { keys = ["S"], commands = ["shell bash"] }, { keys = ["'"], commands = ["shell bash"] }, ]
tks a lot
Description:
I would like to request a feature where joshuto can toggle between joshuto and shell mode. Similar to ranger's 'S' key -- pressing 'S' enters command line and cd to the current directory. In command line, executing
exit
orCtrl-d
back to ranger, and exiting ranger returns to the directory from which ranger was initially started.This feature is highly beneficial because there are many complex tasks that can only be accomplished in command line. The current
:shell
command in joshuto is limited and cannot execute shell functions defined in configuration files like/etc/profile
or/etc/bashrc
.Although the following joshuto shell function achieves a similar effect, it exits joshuto, and the working directory of the shell environment switches to the current directory instead of the directory from which joshuto was initially started.
Ranger keybinding configuration for switching to shell mode:
Thank you for considering this feature request. It would greatly enhance the functionality and usability of joshuto.