SlickEdit Community

SlickEdit Product Discussion => SlickEdit® => Topic started by: jorick on November 03, 2025, 08:36:41 PM

Title: File reusing the same window even if One File Per Window selected
Post by: jorick on November 03, 2025, 08:36:41 PM
In Options->Editing->Editor Windows, Files per window is set to One file per window.  If I'm displaying a file in a window and then open a file from a different directory with the same name, it won't open a new buffer but reuse the same buffer.  If the file being displayed has a different name, then it will open the new file in a different buffer.

Example: I have two files, C:\test\Argh.py and C:\run\Argh.py.  I've opened C:\test\Argh.py that is currently being displaying it in a tab.  I then open C:\run\Argh.py and that file replaces C:\test\Argh.py in the buffer.  It appears that C:\test\Argh.py gets closed since the tab dropdown doesn't show the file in the list.  Now I open both C:\test\Argh.py and Sheesh.py, and am viewing Sheesh.py in the tab.  If I open C:\run\Argh.py, it doesn't replace C:\test\Argh.py but opens it in its own tab.

=====

SlickEdit Pro 2024 (v29.0.4.0 64-bit Qt5)

Serial number: [redacted]
Licensed number of users: Single user
License file: C:\ProgramData\slickedit\29\slickedit.lic

Build Date: September 20, 2025
Emulation: CodeWright

OS: Windows 11 x64
OS Version: 11.00.0 
Memory: 43% Load, 28522MB/64980MB Physical, 30613MB/69076MB Page File, 4716MB/134217727MB Virtual
Shell Information: C:\WINDOWS\system32\cmd.exe /q
Screen Size: 1920 x 1080 (0 0 1920 1080), 3840 x 2160 (-2835 -2160 3200 1800), 3840 x 2160 (1005 -2170 3200 1800)

Project Type: Gnuc
Language: .c (C/C++)
Encoding: ACP (1252)

Installation Directory: C:\Program Files\SlickEdit Pro 29.0.4\ (non-removable drive,NTFS,697660MB free)
Configuration Directory: C:\Users\RickyBennett\AppData\Local\SlickEdit\29.0.4\ (non-removable drive,NTFS,697660MB free)
Migrated from: C:\Users\RickyBennett\AppData\Local\SlickEdit\29.0.3\
Title: Re: File reusing the same window even if One File Per Window selected
Post by: Clark on November 03, 2025, 09:31:32 PM
Try turning off "Automatically close visited files"

Tools>Options>Editing>Bookmarks>Automatically close visited files
Title: Re: File reusing the same window even if One File Per Window selected
Post by: jorick on November 03, 2025, 09:39:34 PM
That worked!  Thanks!

It seems to be a strange place to put that setting.  I was looking under Editing->Editor Windows.  I would think putting it under Files per window would be a better place since that setting doesn't have much to do with bookmarks.
Title: Re: File reusing the same window even if One File Per Window selected
Post by: Clark on November 04, 2025, 02:13:23 AM
Agreed. I had to do a search for "visit" to find it ("close" had a few too many matches). Bookmarks are used for a lot of features but it's not where I naturally looked for this. Under the Files per window setting makes more sense.