Author Topic: Sync editor file with projects  (Read 6113 times)

paladin

  • Community Member
  • Posts: 27
  • Hero Points: 1
Sync editor file with projects
« on: September 14, 2018, 04:05:18 PM »
Is there a way to automatically link the current editor window to the file in the projects space that I am missing? Looking for a behavior similar to eclipse 'link with editor' checkbox.

Graeme

  • Senior Community Member
  • Posts: 2793
  • Hero Points: 347
Re: Sync editor file with projects
« Reply #1 on: September 14, 2018, 10:38:34 PM »
Try right click => show file in projects toolwindow.
Is that what you mean?

If so, I used to have some code that would automatically synch the projects toolwindow to the current buffer.  Let me know if that's what you want and I'll see if I can find it.

paladin

  • Community Member
  • Posts: 27
  • Hero Points: 1
Re: Sync editor file with projects
« Reply #2 on: September 16, 2018, 09:14:03 PM »
thx for the quick reply... I was familiar with right-click method and should have been clearer. What I was looking for was a 'sicky' - show file in project window - capability that would mimic the eclipse 'link with editor' tooling.
Don't trouble yourself digging through your tool box. If it's not a standard vs capability it's not that big a deal -- just thought I might have overlooked something.

I could be confusing it with another of my support tools but didn't slickedit once have a web repository location for user community submissions for maco's etc. that were 'unsupported' but available to the community?


Graeme

  • Senior Community Member
  • Posts: 2793
  • Hero Points: 347
Re: Sync editor file with projects
« Reply #3 on: September 17, 2018, 12:56:37 AM »
Probably something like this would do it.  This is untested.

void _switchbuf_show_file_in_projects_tb(void)
{
    show_file_in_projects_tb(true);
}

User written macros are here
https://community.slickedit.com/index.php/board,21.0.html


Graeme

  • Senior Community Member
  • Posts: 2793
  • Hero Points: 347
Re: Sync editor file with projects
« Reply #4 on: September 17, 2018, 10:00:56 AM »
Don't use the _switchbuf macro - it seems to have some problems.