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

View File

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

View File

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

View File

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