These are chat archives for spyder-ide/public

10th
Aug 2018
Aaron Hall, MBA
@aaronchall
Aug 10 2018 01:00
Here's an outstanding feature request for it: spyder-ide/spyder#799
CAM Gerlach
@CAM-Gerlach
Aug 10 2018 02:16
@aaronchall Seems like there's an actively maintained port of sshfs for Windows, so I'd recommend just using that as it should work with any editor and other tools you may be using as opposed to a bespoke Spyder-only solution, and tunnels over normal SSH that I assume you're already using to connect to the machine.
lfp91
@lfp91
Aug 10 2018 15:25
Hello! I am not sure if I am right here: I love the spyder editor but I am missing one hotkey. When my "keyboard-cursor" is in a word, I would like to press a hotkey to highlight this word. Is there any opportunity to implement such a hotkey by myself? There is no such hotkey in the settings. Thanks in advance.
CAM Gerlach
@CAM-Gerlach
Aug 10 2018 15:36

Is there any opportunity to implement such a hotkey by myself?

@lfp91 So, there is a standard way to do this, if not by a single hotkey—Ctrl-Left then Ctrl-Shift-Right (or vice versa). You can then use a macro program (e.g. AHK on Windows) to bind this to a single shortcut of your choice. You can also bind a key to a double mouse click at the current cursor position, which will accomplish the same thing more precisely.

However, it should be pretty easy to actually add this to Spyder itself, since its written in Python just like your own code. Take a look at spyder-ide/spyder#6423 for an outline of how to do it; it changed less than a dozen lines in three files.

lfp91
@lfp91
Aug 10 2018 15:40
Awesome! Thank you. This Shortcut worked - feel a bit stupid now haha. I am using Ubuntu 18 - I will take a look at some macro program for linux. Thanks again!
Just one more thing: When I highlight the word. Is there a way to put "" or [] / () around it? I couldnt find it in settings either.
CAM Gerlach
@CAM-Gerlach
Aug 10 2018 15:46
@lfp91 If you turn on Automatic insertion of closing quotes under Preferences > Editor > Advanced settings > Source code, you can do that. Doesn't currently work for []/() though but it probably would be very to easy to add since the exact same functionality is already there, just for a different character. It would indeed be quite useful if you were to!
lfp91
@lfp91
Aug 10 2018 15:50
Thank you so much. I will take a look on that. Have a great day!
stonebig
@stonebig
Aug 10 2018 22:07
nice video of Carlos doing a demo of Spyder at https://twitter.com/teoliphant/status/1027952010073702400 + Pierre Raybaut said hello on chat.