execute function on directory change
显示 更早的评论
Hi,
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?
Thanks
Jan
回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Entering Commands 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!