Change the index mod keybinds.

These ones are probably even more dumb, though.
This commit is contained in:
Zixaphir 2014-03-09 15:43:30 -07:00
parent 698ef0fa05
commit f96e046af4
4 changed files with 19 additions and 12 deletions

View File

@ -329,10 +329,10 @@
'Next page': ['Shift+Right', 'Jump to the next page.'],
'Previous page': ['Shift+Left', 'Jump to the previous page.'],
'Search form': ['Ctrl+Alt+s', 'Focus the search field on the board index.'],
'Paged mode': ['Ctrl+1', 'Sets the index mode to paged.'],
'All pages mode': ['Ctrl+2', 'Sets the index mode to all threads.'],
'Catalog mode': ['Ctrl+3', 'Sets the index mode to catalog.'],
'Cycle sort type': ['Ctrl+x', 'Cycle through index sort types.'],
'Paged mode': ['Alt+1', 'Sets the index mode to paged.'],
'All pages mode': ['Alt+2', 'Sets the index mode to all threads.'],
'Catalog mode': ['Alt+3', 'Sets the index mode to catalog.'],
'Cycle sort type': ['Alt+x', 'Cycle through index sort types.'],
'Next thread': ['Shift+Down', 'See next thread.'],
'Previous thread': ['Shift+Up', 'See previous thread.'],
'Expand thread': ['Ctrl+e', 'Expand thread.'],
@ -12053,6 +12053,9 @@
Index.setIndexMode('catalog');
break;
case Conf['Cycle sort type']:
if (g.VIEW !== 'index') {
return;
}
Index.cycleSortType();
break;
case Conf['Next thread']:

View File

@ -305,10 +305,10 @@
'Next page': ['Shift+Right', 'Jump to the next page.'],
'Previous page': ['Shift+Left', 'Jump to the previous page.'],
'Search form': ['Ctrl+Alt+s', 'Focus the search field on the board index.'],
'Paged mode': ['Ctrl+1', 'Sets the index mode to paged.'],
'All pages mode': ['Ctrl+2', 'Sets the index mode to all threads.'],
'Catalog mode': ['Ctrl+3', 'Sets the index mode to catalog.'],
'Cycle sort type': ['Ctrl+x', 'Cycle through index sort types.'],
'Paged mode': ['Alt+1', 'Sets the index mode to paged.'],
'All pages mode': ['Alt+2', 'Sets the index mode to all threads.'],
'Catalog mode': ['Alt+3', 'Sets the index mode to catalog.'],
'Cycle sort type': ['Alt+x', 'Cycle through index sort types.'],
'Next thread': ['Shift+Down', 'See next thread.'],
'Previous thread': ['Shift+Up', 'See previous thread.'],
'Expand thread': ['Ctrl+e', 'Expand thread.'],
@ -12067,6 +12067,9 @@
Index.setIndexMode('catalog');
break;
case Conf['Cycle sort type']:
if (g.VIEW !== 'index') {
return;
}
Index.cycleSortType();
break;
case Conf['Next thread']:

View File

@ -653,19 +653,19 @@ vp-replace
'Focus the search field on the board index.'
]
'Paged mode': [
'Ctrl+1'
'Alt+1'
'Sets the index mode to paged.'
]
'All pages mode': [
'Ctrl+2'
'Alt+2'
'Sets the index mode to all threads.'
]
'Catalog mode': [
'Ctrl+3'
'Alt+3'
'Sets the index mode to catalog.'
]
'Cycle sort type': [
'Ctrl+x'
'Alt+x'
'Cycle through index sort types.'
]
# Thread Navigation

View File

@ -110,6 +110,7 @@ Keybinds =
return unless g.VIEW is 'index' and Conf['Index Mode'] isnt 'catalog'
Index.setIndexMode 'catalog'
when Conf['Cycle sort type']
return unless g.VIEW is 'index'
Index.cycleSortType()
# Thread Navigation
when Conf['Next thread']