Author Topic: Supressing change directory per buffer on project open  (Read 2696 times)

mrothman

  • Senior Community Member
  • Posts: 109
  • Hero Points: 1
Supressing change directory per buffer on project open
« on: January 05, 2007, 04:24:50 pm »
I have def_switchbuf_cd set true because I like to have the directory in the process buffer switch whenever I switch between files.  But, this seems to mean that if I open a project with the process buffer open, every single buffer that's restored causes an individual cd.  Since I tend to leave a lot of files open, this actually takes a significant amount of time, not to mention filling my process buffer up with text.  Before I go in and try to change this in Slick-c, does anyone know of a simpler way to supress the directory changes just during the project open?  Or tell the restore files that there's no need to switch?  Thanks.

hs2

  • Senior Community Member
  • Posts: 2727
  • Hero Points: 281
Re: Supressing change directory per buffer on project open
« Reply #1 on: January 05, 2007, 05:08:52 pm »
You could try this
Code: [Select]
...
  exit_process ();
  clear_pbuffer ();
 ...
in _project_close_ / _prjclose_ callback.
If you want to restart the process buffer: _prjopen_ / _project_open_ -> start_process()

Or use the callbacks to toggle def_switchbuf_cd ...

Hope it helps a bit,

HS2

mrothman

  • Senior Community Member
  • Posts: 109
  • Hero Points: 1
Re: Supressing change directory per buffer on project open
« Reply #2 on: September 07, 2007, 03:32:49 pm »
I notice I never thanked you for this strategy - this worked beautifully.