Author Topic: BrowseTracker plugin  (Read 80843 times)

Offline Pecan

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 2750
BrowseTracker plugin
« on: June 05, 2007, 11:23:22 pm »
// ---------------------------
//  Browse Tracker
// ---------------------------

BrowseTracker is a small CodeBlocks plugin to browse back and forth to recently activated CodeBlocks editors.

It keeps a 20 slot history of recently activated editors.

It uses the Alt-Left and Alt-Right command keys to move through the editor stack in the order in which they were activated.

For convienence there is a menu item at the bottom of the CodeBlocks Main Menu/View that allows you to clear the history stack.


http://www.savefile.com/files/783621


The file above contains all source and .cbplugin files for both MSW and unix.

To install the plugin:
  • Unzip the downloaded file.
  • Close all active CodeBlocks projects
  • Use the CodeBlocks installer at
    MainMenu/Plugins/Manage Plugins.../Install New
  • Navigate to the location you unzipped the file above.
  • Double click BrowseTracker.cbplugin for MSWindows
  • Double click libBrowseTracker.cbplugin for unix

You may have to restart CodeBlocks if there were pre-existing editors open during the install.


« Last Edit: June 05, 2007, 11:50:39 pm by Pecan »

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: BrowseTracker plugin
« Reply #1 on: June 05, 2007, 11:59:10 pm »
I guess I'm just too blind to see: What's the difference to enabling "Use smart tag switching scheme" (or was it "Use drop-down list" in Settings -> Environment -> Notebooks appearance and then pressing CTRL + TAB?!
With regards, Morten.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline Pecan

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 2750
Re: BrowseTracker plugin
« Reply #2 on: June 06, 2007, 12:04:20 am »
I guess I'm just too blind to see: What's the difference to enabling "Use smart tag switching scheme" (or was it "Use drop-down list" in Settings -> Environment -> Notebooks appearance and then pressing CTRL + TAB?!
With regards, Morten.

The smart tabs just switches back and forth between the last two activated editors with a Ctrl-tab.

To get to the next editor you have to remember to hit Ctrl-tab-tab. for the next Ctrl-tab-tab-tab; then the next is Ctrl-tab-tab-tab-tab . And the list gets rearranged each time.

Smart tabs records the editors in the order in which they appear on the notebook tabs. Not the way they were activated by the user.

BrowseTracker keeps a record of the order in which they were activated by the USER. Like an internet browser. And it contains ONLY the editors activated by the user, not the complete notebook of editors.

Lets say you have a project open and you've activated two editors. You then open CodeBlock.cbp. Now smart tabs is full of tab entries, while BrowseTracker contains only the two.

One Alt-Left, and you're back where want to be.

Lets say you search-in-files for "wxTree", then activate an editor, then search for "wxPopup". See what you want to see, then with one Alt-Left, you're back at "wxTree". With another Alt-Left, you're back at your own code.

You can't do that with Ctrl-Tab unless you have a steel-trap memory.




« Last Edit: June 06, 2007, 01:09:42 pm by Pecan »

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: BrowseTracker plugin
« Reply #3 on: June 06, 2007, 07:28:39 am »
You can't do that with Ctrl-Tab unless you have a steel-trap memory.
Alright! :D Thanks for the explanation - I had only two files open so -in fact- I have been blind. ;-)
With regards, Morten.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline dje

  • Lives here!
  • ****
  • Posts: 683
Re: BrowseTracker plugin
« Reply #4 on: June 06, 2007, 09:29:52 pm »
Hi Pecan !

With SVN 4051 a 4066, a SDK version problem happens.
Code
[21:26:43.515]: ERROR: C:\DevSofts\CodeBlocks/share/codeblocks/plugins/BrowseTracker.dll: not loaded (missing symbols?)

What version do you use ?

Dje

Offline Pecan

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 2750
Re: BrowseTracker plugin
« Reply #5 on: June 06, 2007, 11:07:19 pm »
Hi Pecan !

With SVN 4051 a 4066, a SDK version problem happens.
Code
[21:26:43.515]: ERROR: C:\DevSofts\CodeBlocks/share/codeblocks/plugins/BrowseTracker.dll: not loaded (missing symbols?)

What version do you use ?

Dje

Im some versions behind. I'll re-compile this evening.

Thanks

But, also, the zip file contains the source and .cbp projects.
So you don't have to wait for me.
« Last Edit: June 06, 2007, 11:15:35 pm by Pecan »

Offline dje

  • Lives here!
  • ****
  • Posts: 683
Re: BrowseTracker plugin
« Reply #6 on: June 06, 2007, 11:34:27 pm »
Quote
But, also, the zip file contains the source and .cbp projects.
So you don't have to wait for me.

I know but i'm looking for time ! And the little I have goes to the toolbar integration for the ThreadSearch plugin.

Nevertheless, I have the same problem building it in release and debug mode with SVN 4066
It works !

Dje
« Last Edit: June 07, 2007, 12:08:33 am by dje »

Offline Pecan

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 2750
Re: BrowseTracker plugin
« Reply #7 on: June 07, 2007, 12:34:15 am »
// ---------------------------
//  Browse Tracker
// ---------------------------

BrowseTracker is a small CodeBlocks plugin to browse back and forth to recently activated CodeBlocks editors.

It keeps a 20 slot history of recently activated editors.

It uses the Alt-Left and Alt-Right command keys to move through the editor stack in the order in which they were activated.

For convienence there is a menu item at the bottom of the CodeBlocks Main Menu/View that allows you to clear the history stack.

Updated for SVN 4067


http://www.savefile.com/files/786712


The file above contains all source and .cbplugin files for both MSW and unix.

To install the plugin:
  • Unzip the downloaded file.
  • Close all active CodeBlocks projects
  • Use the CodeBlocks installer at
    MainMenu/Plugins/Manage Plugins.../Install New
  • Navigate to the location you unzipped the file above.
  • Double click BrowseTracker.cbplugin for MSWindows
  • Double click libBrowseTracker.cbplugin for unix

You may have to restart CodeBlocks if there were pre-existing editors open during the install.




mariocup

  • Guest
Re: BrowseTracker plugin
« Reply #8 on: June 07, 2007, 01:40:06 pm »
Hi Pecan,

thanks for the great plugin. Some time ago I asked for that feature and now it is available. Cool :D

http://forums.codeblocks.org/index.php/topic,5552.0.html

Some editors like vi, emacs, Textpad etc. have different buffer for copy and paste or a clipboard history. I think the same mechanism of browsetracker could be used to implement such a clipboard history. This is useful if you want to rename different variables in your source code. What do you think about that?

Bye,

Mario

Offline Pecan

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 2750
Re: BrowseTracker plugin
« Reply #9 on: June 07, 2007, 02:54:43 pm »
...
Some editors like vi, emacs, Textpad etc. have different buffer for copy and paste or a clipboard history. I think the same mechanism of browsetracker could be used to implement such a clipboard history.
...

True... But there are so many of these nice little "tray" programs that do just that. And they arn't limited to a single program.

Offline dje

  • Lives here!
  • ****
  • Posts: 683
Re: BrowseTracker plugin
« Reply #10 on: June 07, 2007, 09:30:29 pm »
Hi Pecan !

Did you intentionnally forget the Announcement for plugins/patches page  :?:

Dje

Offline Pecan

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 2750
Re: BrowseTracker plugin
« Reply #11 on: June 07, 2007, 09:34:01 pm »
Hi Pecan !

Did you intentionnally forget the Announcement for plugins/patches page  :?:

Dje

No, not intentionally. Just naturally.

Offline tiwag

  • Developer
  • Lives here!
  • *****
  • Posts: 1196
  • sailing away ...
    • tiwag.cb
Re: BrowseTracker plugin
« Reply #12 on: July 03, 2007, 11:36:48 am »
Hello Pecan

thanks for this fine plugin.

what do you think about to extend your plugin in order to save and browse the history
of all recent position(s) in all files even when the recent position(s) were in the same file,
e.g. when a Find Next/Previous , or Goto Line Number etc. were done before.

brgds, tiwag

Offline rjmyst3

  • Multiple posting newcomer
  • *
  • Posts: 117
    • wxFormBuilder
Re: BrowseTracker plugin
« Reply #13 on: July 03, 2007, 04:10:19 pm »
Hello Pecan

thanks for this fine plugin.

what do you think about to extend your plugin in order to save and browse the history
of all recent position(s) in all files even when the recent position(s) were in the same file,
e.g. when a Find Next/Previous , or Goto Line Number etc. were done before.

brgds, tiwag

I really like that feature in other editors, please consider it.  :)

Offline Pecan

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 2750
Re: BrowseTracker plugin
« Reply #14 on: July 03, 2007, 08:17:55 pm »
Hello Pecan

thanks for this fine plugin.

what do you think about to extend your plugin in order to save and browse the history
of all recent position(s) in all files even when the recent position(s) were in the same file,
e.g. when a Find Next/Previous , or Goto Line Number etc. were done before.

brgds, tiwag

I really like that feature in other editors, please consider it.  :)

Ok, I'm game.

Any ideas on how to impement it?

How would you know when to  record a position in the queue? What actions are meaningful and which are trivial?