diff --git a/src/Miscellaneous/Keybinds.coffee b/src/Miscellaneous/Keybinds.coffee index 49ed91320..680a2f5b8 100644 --- a/src/Miscellaneous/Keybinds.coffee +++ b/src/Miscellaneous/Keybinds.coffee @@ -109,6 +109,9 @@ Keybinds = when Conf['Toggle thread watcher'] return unless ThreadWatcher.enabled ThreadWatcher.toggleWatcher() + when Conf['Mark thread read'] + return unless g.VIEW is 'index' and thread and UnreadIndex.enabled + UnreadIndex.markRead.call threadRoot # Images when Conf['Expand image'] return unless ImageExpand.enabled and threadRoot diff --git a/src/Monitoring/UnreadIndex.coffee b/src/Monitoring/UnreadIndex.coffee index 35c766d09..47315fa15 100644 --- a/src/Monitoring/UnreadIndex.coffee +++ b/src/Monitoring/UnreadIndex.coffee @@ -6,6 +6,7 @@ UnreadIndex = init: -> return unless g.VIEW is 'index' and Conf['Remember Last Read Post'] and Conf['Unread Line in Index'] + @enabled = true @db = new DataBoard 'lastReadPosts', @sync Callbacks.Thread.push diff --git a/src/config/Config.coffee b/src/config/Config.coffee index 9ee2ca2be..c968ba40d 100644 --- a/src/config/Config.coffee +++ b/src/config/Config.coffee @@ -947,6 +947,10 @@ Config = 't' 'Toggle visibility of thread watcher.' ] + 'Mark thread read': [ + 'Ctrl+0' + 'Mark thread read from index (requires "Unread Line in Index").' + ] # Images 'Expand image': [ 'Shift+e'