mandeep / sublime-text-conda

Work with conda environments in Sublime Text 3
BSD 3-Clause "New" or "Revised" License
26 stars 10 forks source link

REPL fixes and improvements #29

Closed gseastream closed 3 years ago

gseastream commented 4 years ago

Summary

Sorry for the second pull request. I just discovered a bug and some other opportunities for improvements, so I wanted to get some changes in. Everything is mainly about when and how to close tabs.

Changes

mandeep commented 3 years ago

Thanks for the fixes. Regarding the opening a RELP if one already exsits, I think that a new REPL should open in another tab. This would mimic the behavior or SublimeREPL.

mandeep commented 3 years ago

Also, I think we should default to Python syntax in the REPL rather than plaintext. This would also be the same behavior as SublimeREPL.

mandeep commented 3 years ago

Another thing is that the Packages portion of the syntax selection should be a part of the path in the file. That way the user only needs to write Text/Plain text.tmLanguage or Python/Python.tmLanguage. Or, you could simply let the user chose plaintext or python and select the corresponding syntax accordingly.

mandeep commented 3 years ago

I noticed another bug. If you have a file open and repl open on the bottom row from a previous session, when opening a new file, the file opens in the second row. It should open in the first row.

gseastream commented 3 years ago

Thanks for the notes. For your last comment, I think that's default sublime behavior. When I have a repl open, if my focus is on the main file and I open a new file, it shows up in the top row, but if I open a file while my focus is in the bottom row repl, the file opens in the bottom row. Sublime opens files in the group where your focus is I'm pretty sure. Is this what you're experiencing? Or are you saying it opens new files in the second row no matter where your focus is?

mandeep commented 3 years ago

You're right, it's based on focus so don't worry about it. :)

mandeep commented 3 years ago

Thanks for taking the time to make the changes. One last thing I forgot to mention is that the new repl settings in the settings file should come after the pythonw setting. As we add new settings they appear last in the file.

mandeep commented 3 years ago

Thanks @gseastream for all your work on this!