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
Ranger version/commit: 1.9.3, also tested on master [136416c]
Locale: en_US.UTF-8
Current Behavior
:bulkrename fails with endwin() returned ERR after first editor (default, vi) session is exited.
Message log:
21:51:15 INFO ranger version: ranger-master
21:51:15 INFO Python version: 3.11.6 (main, Oct 13 2023, 15:52:55) [GCC 13.1.1 20230722]
21:51:15 INFO Locale: en_US.UTF-8
21:51:15 INFO Process ID: 28100
21:51:32 ERRO Notification: endwin() returned ERR
21:51:32 ERRO endwin() returned ERR
Traceback (most recent call last):
File "/tmp/ranger/ranger-master/ranger/core/actions.py", line 272, in execute_console
cmd.execute()
File "/tmp/ranger/ranger-master/ranger/config/commands.py", line 1295, in execute
self.fm.execute_file([File(cmdfile.name)], app='editor')
File "/tmp/ranger/ranger-master/ranger/core/actions.py", line 446, in execute_file
return execute()
^^^^^^^^^
File "/tmp/ranger/ranger-master/ranger/core/actions.py", line 444, in execute
return self.rifle.execute(filenames, mode, label, flags, None)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/tmp/ranger/ranger-master/ranger/ext/rifle.py", line 440, in execute
self.hook_before_executing(command, self._mimetype, self._app_flags)
File "/tmp/ranger/ranger-master/ranger/core/fm.py", line 136, in <lambda>
self.ui.suspend() if 'f' not in flags else None
^^^^^^^^^^^^^^^^^
File "/tmp/ranger/ranger-master/ranger/gui/ui.py", line 160, in suspend
curses.endwin()
_curses.error: endwin() returned ERR
Expected Behavior
Following first editor window closing, new editor instance with the changes is displayed prompting user for confirmation.
Context
Bulk rename files :)
This behavior appears to be caused by the change described in this thread
Possible Solutions
Catch the new Exception to allow the bulkrename operation to continue.
Steps to reproduce
Create test directory with files and launch ranger
d=$(mktemp -d) && touch $d/{1..3} && ranger $d
Mark multiple files
Use the :bulkrename command
make some changes in the editor and save and quit
%s/$/-d/g
The text was updated successfully, but these errors were encountered:
Runtime Environment
Current Behavior
:bulkrename
fails withendwin() returned ERR
after first editor (default, vi) session is exited.Message log:
Expected Behavior
Following first editor window closing, new editor instance with the changes is displayed prompting user for confirmation.
Context
Bulk rename files :)
This behavior appears to be caused by the change described in this thread
Possible Solutions
Catch the new Exception to allow the bulkrename operation to continue.
Steps to reproduce
:bulkrename
commandThe text was updated successfully, but these errors were encountered: