Author Topic: Can a file be remove from the file history?  (Read 3615 times)

ErikS

  • Community Member
  • Posts: 11
  • Hero Points: 0
Can a file be remove from the file history?
« on: November 11, 2011, 11:07:48 PM »
I found removePath() in OptionsHistoryNavigator.e (SE 13.0.2.0), but I've been unable to figure out a way to call it from my command macro.

Thanks,
Erik

Graeme

  • Senior Community Member
  • Posts: 2796
  • Hero Points: 347
Re: Can a file be remove from the file history?
« Reply #1 on: November 12, 2011, 01:58:13 AM »
Do you need to do it from a macro?  If you just want to remove files from the  file menu history, you can use tools -> options -> file options -> history.


ErikS

  • Community Member
  • Posts: 11
  • Hero Points: 0
Re: Can a file be remove from the file history?
« Reply #2 on: November 14, 2011, 02:34:34 PM »
I'd like to be able to do it from a macro. I have a macro opening several files for editing, but I don't want some of them in the history as it is inconvenient for those running the macro.

I believe the tools->options->file options->history window is using the removePath() macro to do it, I just don't understand how to call that method from my own macro (if it is even possible).

Graeme

  • Senior Community Member
  • Posts: 2796
  • Hero Points: 347
Re: Can a file be remove from the file history?
« Reply #3 on: November 15, 2011, 09:34:39 AM »
From looking at ctldelete.lbutton_up() in history.e, all you need to do is call _menu_remove_filehist() and pass the filename to delete.