Author Topic: Remapping Alt-W in the Buffer List?  (Read 2766 times)

greggman

  • Senior Community Member
  • Posts: 279
  • Hero Points: 14
Remapping Alt-W in the Buffer List?
« on: August 09, 2009, 12:07:52 am »
Alt-W = Write File (Save) in BRIEF mode and I've been pressing that key to save since the late 80s.

The new buffer list though in 14.x, Alt-W switches to the Workspace tab.

Is there an easy way to remap it so Alt-W saves the selected file instead of switching to the Workspace tab?

thanks.

Graeme

  • Senior Community Member
  • Posts: 2561
  • Hero Points: 330
Re: Remapping Alt-W in the Buffer List?
« Reply #1 on: August 09, 2009, 02:29:48 am »
This code works for me.  Put it in vusrmac.e or somewhere.  You'll have to re-load it after every time the slick tbfilelist.e file gets loaded - e..g by a hotfix.  If you want to go to extra trouble you could put the code below into a file of its own, then have another macro module that  (on startup of slick) compared the time/date of the two .ex files and re-loaded your code below, if older.  If you're gonna do that, you should probably prompt before doing the load.

Code: [Select]
defeventtab _tbfilelist_form;

void ctl_file_list."A-W"()
{
   save();
}

void ctl_filter."A-W"()
{
   save();
}

Graeme