<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic JMP TIP:  delete search / replace history in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/JMP-TIP-delete-search-replace-history/m-p/386509#M63655</link>
    <description>&lt;P&gt;I frequently use the Search/Find/Replace (Edit &amp;gt; Search &amp;gt; Find) in data tables and scripts and even reports and journals, it is very useful.&amp;nbsp; But one feature is that this tool retains the history of the terms you have used for search and/or replace.&amp;nbsp; You will see them as a drop down in the dialog as shown below&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MathStatChem_0-1621366705825.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/32941iAEEA3702C77A42FC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MathStatChem_0-1621366705825.png" alt="MathStatChem_0-1621366705825.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;There are times, however, where you don't want to retain the search history and/or don't want to use the search history.&amp;nbsp; I have put in Wish List item on this (see&amp;nbsp;&lt;LI-MESSAGE title="Clear saved Search/Find/Replace" uid="386500" url="https://community.jmp.com/t5/JMP-Wish-List/Clear-saved-Search-Find-Replace/m-p/386500#U386500" discussion_style_icon_css="lia-mention-container-editor-message lia-img-icon-idea-thread lia-fa-icon lia-fa-idea lia-fa-thread lia-fa"&gt;&lt;/LI-MESSAGE&gt;&amp;nbsp;), but here is a quick way to remove the search and replace history, using the following script:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );

// remove previous search and replace history

fname = "FindMRU.txt";
fpath = Get Path Variable( "$USER_APPDATA" );
If( File Exists( fpath || fname ),
	Delete File( fpath || fname )
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;This works on Windows, not sure if it will on a Mac, however.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The contents of the file "FindMRU.txt" is simply&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;find("&amp;lt;search1&amp;gt;", "&amp;lt;search2&amp;gt;", ..., "", "", "", ..), replace("&amp;lt;replace1&amp;gt;", "&amp;lt;replace2&amp;gt;", ....),&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;jso you could also edit this file to remove particular terms.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If any of you are creatively motivated to improve on this, I'd be happy to see it.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 10 Jun 2023 20:45:04 GMT</pubDate>
    <dc:creator>MathStatChem</dc:creator>
    <dc:date>2023-06-10T20:45:04Z</dc:date>
    <item>
      <title>JMP TIP:  delete search / replace history</title>
      <link>https://community.jmp.com/t5/Discussions/JMP-TIP-delete-search-replace-history/m-p/386509#M63655</link>
      <description>&lt;P&gt;I frequently use the Search/Find/Replace (Edit &amp;gt; Search &amp;gt; Find) in data tables and scripts and even reports and journals, it is very useful.&amp;nbsp; But one feature is that this tool retains the history of the terms you have used for search and/or replace.&amp;nbsp; You will see them as a drop down in the dialog as shown below&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MathStatChem_0-1621366705825.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/32941iAEEA3702C77A42FC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MathStatChem_0-1621366705825.png" alt="MathStatChem_0-1621366705825.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;There are times, however, where you don't want to retain the search history and/or don't want to use the search history.&amp;nbsp; I have put in Wish List item on this (see&amp;nbsp;&lt;LI-MESSAGE title="Clear saved Search/Find/Replace" uid="386500" url="https://community.jmp.com/t5/JMP-Wish-List/Clear-saved-Search-Find-Replace/m-p/386500#U386500" discussion_style_icon_css="lia-mention-container-editor-message lia-img-icon-idea-thread lia-fa-icon lia-fa-idea lia-fa-thread lia-fa"&gt;&lt;/LI-MESSAGE&gt;&amp;nbsp;), but here is a quick way to remove the search and replace history, using the following script:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );

// remove previous search and replace history

fname = "FindMRU.txt";
fpath = Get Path Variable( "$USER_APPDATA" );
If( File Exists( fpath || fname ),
	Delete File( fpath || fname )
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;This works on Windows, not sure if it will on a Mac, however.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The contents of the file "FindMRU.txt" is simply&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;find("&amp;lt;search1&amp;gt;", "&amp;lt;search2&amp;gt;", ..., "", "", "", ..), replace("&amp;lt;replace1&amp;gt;", "&amp;lt;replace2&amp;gt;", ....),&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;jso you could also edit this file to remove particular terms.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If any of you are creatively motivated to improve on this, I'd be happy to see it.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 10 Jun 2023 20:45:04 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JMP-TIP-delete-search-replace-history/m-p/386509#M63655</guid>
      <dc:creator>MathStatChem</dc:creator>
      <dc:date>2023-06-10T20:45:04Z</dc:date>
    </item>
    <item>
      <title>Re: JMP TIP:  delete search / replace history</title>
      <link>https://community.jmp.com/t5/Discussions/JMP-TIP-delete-search-replace-history/m-p/390100#M64023</link>
      <description>&lt;P&gt;I checked and this works on the Mac, also.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Jun 2021 10:23:36 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JMP-TIP-delete-search-replace-history/m-p/390100#M64023</guid>
      <dc:creator>MathStatChem</dc:creator>
      <dc:date>2021-06-03T10:23:36Z</dc:date>
    </item>
  </channel>
</rss>

