I want to customize my command history, so that I have a current history for multiple folders i'm working in (different projects). The motivation is also to put this history-file under revision control, so that when I go back to an older version of a project, I can quickly see what was called in that (previous) state of the project.
To implement this, the first step would be to load/save the command history, when i change my folder. I tried to overload the buildin cd function like this:
function cd ( newFolder ) % some functionality ... builtin('cd',newFolder); end This way, I can load/save the command history. If i call cd from the command window, this works fine. The problem is, that matlab seems to call a different function internally when I change the folder with the gui-tools. In that case, my function is not called.
Is there a way to get more controll over the gui? What function is used here? Maybe there already exist some kind of solution to my overall goal?