Author Topic: bufftabs.e hack for binding tab sort order commands  (Read 2755 times)

MindprisM

  • Senior Community Member
  • Posts: 127
  • Hero Points: 8
bufftabs.e hack for binding tab sort order commands
« on: July 22, 2013, 09:57:39 am »
SlickEdit 2012 (v17.0.3.0 64-bit)

In the tabs popup menu, there are sort order commands: Alphabetical, Last Opened, Last Viewed and Manual.

These do not exist as independent _commands that can be bound to keys.

Add the following to bufftabs.e:
Code: [Select]
_command void set_file_tab_sort_order_alpha(...) name_info(','VSARG2_CMDLINE|VSARG2_EDITORCTL){
   set_file_tab_sort_order(FILETAB_ALPHABETICAL);
   sticky_message('Tabs ordered alphabetically, A O V M');
}
_command void set_file_tab_sort_order_opened(...) name_info(','VSARG2_CMDLINE|VSARG2_EDITORCTL){
   set_file_tab_sort_order(FILETAB_MOST_RECENTLY_OPENED);
   sticky_message('Tabs ordered recently opened, A O V M');
}
_command void set_file_tab_sort_order_viewed(...) name_info(','VSARG2_CMDLINE|VSARG2_EDITORCTL){
  set_file_tab_sort_order(FILETAB_MOST_RECENTLY_VIEWED);
  sticky_message('Tabs ordered recently viewed, A O V M');
}
_command void set_file_tab_sort_order_manual(...) name_info(','VSARG2_CMDLINE|VSARG2_EDITORCTL){
  set_file_tab_sort_order(FILETAB_MANUAL);
  sticky_message('Tabs ordered manually, A O V M');
}

And bind to taste.