File tree Expand file tree Collapse file tree 3 files changed +9
-2
lines changed Expand file tree Collapse file tree 3 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -50,6 +50,9 @@ default_to_last_opened_directory=no
5050# Whether to save the last opened directory.
5151save_last_opened_directory=no
5252
53+ # Move the cursor to the currently playing item (if available) when the playing file changes.
54+ cursor_follows_playing_item=no
55+
5356####################################
5457########## filter settings #########
5558####################################
Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ local g = require 'modules.globals'
88local ass = require ' modules.ass'
99local scanning = require ' modules.navigation.scanning'
1010local fb_utils = require ' modules.utils'
11+ local cursor = require ' modules.navigation.cursor'
1112
1213--- @class directory_movement
1314local directory_movement = {}
@@ -102,8 +103,8 @@ function directory_movement.set_current_file(filepath)
102103 g .current_file .original_path = absolute_path
103104 g .current_file .path = resolved_path
104105
105- if not g . state . hidden then ass . update_ass ()
106- else g . state . flag_update = true end
106+ if o . cursor_follows_playing_item then cursor . select_playing_item () end
107+ ass . update_ass ()
107108end
108109
109110-- the base function for moving to a directory
Original file line number Diff line number Diff line change @@ -102,6 +102,9 @@ local o = {
102102 -- e.g. moving up from `ftp://localhost/` will move straight to the root instead of `ftp://`
103103 skip_protocol_schemes = true ,
104104
105+ -- move the cursor to the currently playing item (if available) when the playing file changes
106+ cursor_follows_playing_item = false ,
107+
105108 -- Replace the user's home directory with `~/` in the header.
106109 -- Uses the internal home-label addon.
107110 home_label = true ,
You can’t perform that action at this time.
0 commit comments