Add keybind to mark thread read from index (if Unread Line in Index enabled).
This commit is contained in:
parent
b79ef7131a
commit
c66529d4c5
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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'
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user