Hi
can some give me the code to make a button that toggles( hide/show) the file extension in lister 
thanks in advance
Hi
can some give me the code to make a button that toggles( hide/show) the file extension in lister 
thanks in advance
This will toggle a column that shows file extensions:
Set COLUMNSTOGGLE=ext(1)
If you want to toggle whether or not the Name column shows extensions then I think that's more difficult. You may have to build two Folder Formats, one with extensions enabled and the other with them disabled, and then create a button which lets you select one format or the other. Using the column, as above, is definitely easier.
You could also create two new STYLES (settings - preferences - listers - styles):
Create a style with the name Extensions OFF
Click New style icon and enter the name - select left file display (and/or right file display) tab - check Format - Click Edit - click display tab - check view- check Hide file extension
Create a style with the name Extensions ON
Click New style icon and enter the name - select left file display (and/or right file display) tab - check Format - Click Edit - click display tab - check view - UNcheck Hide file extension
Create a left/right click button to load the 2 new styles:
Button left click code Prefs STYLE="Extensions OFF"
Button right click code Prefs STYLE="Extensions ON"
I tried this for you and it seems to work.