First time here? Check out the FAQ!
1

Any option for double clicking a project file not opening copy

Currently, when I double-click on a file from my project view it opens a tab of that file, even if an existing tab of that file is already open. Is there any option it to put focus on the existing tab instead?

Thanks for the help! Nathaniel

nathanieljla's avatar
56
nathanieljla
asked 2023-07-21 12:05:53 -0600
Wingware Support's avatar
4.2k
Wingware Support
updated 2023-07-22 12:11:18 -0600
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

2 Answers

0

Wing shouldn't be opening a file twice. However, if there are multiple editor splits, it does show open files in all splits by default. You can right-click on the editor tab area and uncheck Show All Files in All Splits to have each split act independently, with its own set of files.

If it is actually opening a file twice in the same split, could you please submit a bug report from Wing's Help menu and include the error log so we can see if what is going on.

Wingware Support's avatar
4.2k
Wingware Support
answered 2023-07-22 16:05:26 -0600
edit flag offensive 0 remove flag delete link

Comments

add a comment see more comments
0

Oh, with your answer I think I found the issue. I'm using windows mklink /j command to keep all my code in one location and use the code elsewhere on my system. When I'm debugging the file pops opens from the alternative location, because the full path to the files differs from the project path.

e.g: /github/code_folder/myscript.py

links code_folder to :

/documents/maya/scripts/code_folder/myscript.py

The debugger opens the maya path. That's probably not a bug vs. an issue with my setup. Dang.

nathanieljla's avatar
56
nathanieljla
answered 2023-07-22 17:05:14 -0600
edit flag offensive 0 remove flag delete link

Comments

Ah, yes, Wing doesn't support trying to get a canonical file name for Windows links. It does work for Posix 'ln' links on macOS and Linux but Windows 'mklink' links were a problem for some reason that I'm not remembering at the moment. It may be that if you edit the file and save in either buffer, the other one will see the change on disk and reload, so this might end up not being a huge problem but I can see it's annoying. Would it solve it to remove your directory from the project and re-add it using the other path?

Wingware Support's avatar Wingware Support (2023-07-24 09:44:35 -0600) edit
add a comment see more comments

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss.

Add Answer