Author Topic: List of current open files in Slickedit v11.0.2  (Read 7730 times)

robson_depaula

  • Junior Community Member
  • Posts: 3
  • Hero Points: 0
List of current open files in Slickedit v11.0.2
« on: October 20, 2006, 02:17:39 pm »
Greetings,

 I'm using se v11.0.2.
 I would like to know if it is possible to save the list of currently opened files and open them again when needed?

 Suppose i opened 20 files related to my rendering game engine, i would like to save this list (render.list), close all open windows and them open my files related to sound playing. When i finish working with sound i would like to open my render.list and the 20 rendering related files get back to me.

Thanks,
Robson

hs2

  • Senior Community Member
  • Posts: 2737
  • Hero Points: 288
Re: List of current open files in Slickedit v11.0.2
« Reply #1 on: October 20, 2006, 03:35:40 pm »
1. You could create 2 projects (or 2 workspaces containing the appr. projects) and switch between them by setting the desired project active or by switching workspaces.
Adopt your Tools->Options-> General -> General -> Auto-restore setup accordingly.

2. I could post a macro I've written time ago which allows to save the list of all curr. open buffers and to restore them later on. The list can be saved/restored whenever you want and is valid for the current Slick sesssion only (not saved to disk).

But 1. is the better way once you created your projects/workspaces - believe me ;)

HS2

robson_depaula

  • Junior Community Member
  • Posts: 3
  • Hero Points: 0
Re: List of current open files in Slickedit v11.0.2
« Reply #2 on: October 20, 2006, 04:07:01 pm »
Thank you for your help.

I agree method 1 is cleaner :) ... but if you don't mind i would be pleased with your macro.

Could you post it?

Regards,
Robson

hs2

  • Senior Community Member
  • Posts: 2737
  • Hero Points: 288
Re: List of current open files in Slickedit v11.0.2
« Reply #3 on: October 20, 2006, 05:02:16 pm »
No problem - here we go ...

Have fun,

HS2

robson_depaula

  • Junior Community Member
  • Posts: 3
  • Hero Points: 0
Re: List of current open files in Slickedit v11.0.2
« Reply #4 on: October 20, 2006, 06:17:35 pm »
Thank you.

dakdikmen

  • Community Member
  • Posts: 19
  • Hero Points: 0
Re: List of current open files in Slickedit v11.0.2
« Reply #5 on: November 01, 2006, 07:03:47 pm »
Hi,

I like method 2 except which to be able to save more than one list of files and save them to disk..

Don't know slick-C but had trouble with restorebuflist working on Windows (losts of buffers named "C:\My" popped up.  ???

I found a bug in the method #2 macro included above.  Forgot to call maybe_quote_filename() when calling the edit macro in the restorebuflist macro changes in bold:

      else
      {
         _macro('m',_macro('s'));
         _macro_call('edit','+l 'maybe_quote_filename(result));
         status=edit('+l 'maybe_quote_filename(result));
      }

Whish the built-in buffer list was dockable and had a "save/restore buffer list" option. Having a separate workspace for each bug I'm working on is too much trouble in my case..

Thanks for the macro hs2.
DavidA

hs2

  • Senior Community Member
  • Posts: 2737
  • Hero Points: 288
Re: List of current open files in Slickedit v11.0.2
« Reply #6 on: November 01, 2006, 07:55:30 pm »
Thanks a lot dakdikmen !

Just for the sake of efficiency ;)
Code: [Select]
    else
      {
         result = maybe_quote_filename( result );
         _macro('m',_macro('s'));
         _macro_call('edit','+l 'result);
         status=edit('+l 'result);
      }

That's also my proposal:
Complementing all legacy list-* commands (-buffers, -tags (and friends), -clipboards) by dockable toolbars (as Bookmarks etc.).
Of course incl. a few improvements already posted here :)

I''ll keep my fingers crossed that we'll get (parts of) this in v12 ...

HS2