I'm using SublimeREPL in Sublime 2 (v2.0.2) under OS X. I send Python files to the SublimeREPL window for evaluation, and I'd like to clear the SublimeREPL window from time to time. The window seems to be read-only, so cmd-a, delete doesn't work.
Use ctrl+l on a linux/osx system; on windows it's shift+ctrl+c
SublimeRepl documentation is here SublimeRepl keys
Linux OS X Windows Command used Meaning
Alt+p Ctrl+p Alt+p repl_view_previous Walk back to previous input, no autocomplete
Down Down Down repl_view_next Walk back to next input, with autocomplete
Alt+n Ctrl+n Alt+n repl_view_next Walk back to next input, no autocomplete
Enter Enter Enter repl_enter Send current line to REPL
Esc Esc Esc repl_escape Clear REPL input
Ctrl+l Ctrl+l Shift+Ctrl+c repl_clear Clear REPL screen
Shift+Ctrl+c Shift+Ctrl+c Unsupported subprocess_repl_send_signal Send SIGINT to REPL
Related
Is there a way to save breakpoints in Selenium IDE (Chrome)? I have a test which fills up one form, submits it and fills another form on another page etc. I want to pause this flow with breakpoints, maybe change some fields etc. If I save the project (.side), it won't save the breakpoints. It's very tedious to add them every time I start the tests.
How to solve this?
SIDE version 3.17.0
Chrome Mac version 81.0.4044.138 (Official Build) (64-bit)
You can use command to save it ( "command": "debugger").
The issue is that you don't have a command that can enable / disable those debugger commands like the (Ctrl + y). :(
But once your debugger commands are saved then any text editor can switch them on/off by replacing ["command": "debugger"] , with ["command": "//debugger"]
I'm just trying out Atom for the first time and I find it bothersome that Atom keeps opening a new window for each file I click on - I'd prefer that it defaulted to opening each file in the same window.
I'm hoping for something along the lines of "open_files_in_new_window" : false, in Sublime. Unfortunately, all the google results I'm seeing just lament that this toggle is not immediately obvious.
In your terminal you can type atom -a <filename||folder> and the file(s) will open within the same atom window.
Go to Settings > Packages, look for the tabs package. In the settings for this package, choose "use preview Tabs".
Per the atom -h command, one should open files with -n=false or --new-window=false argument passed so that they are opened in an existing window, e.g.
atom -n=false ~/Desktop/test.py
One could make atom -n=false an alias of atom in the ~/.bashrc or ~/.zshrc file, or one could edit the corresponding file in /home/<your username>/.local/share/applications so that the command it invokes is, for instance, /usr/lib/atom/atom -n=false %F.
Just in the editor window, drag the open tab by mouse onto the window you need.
Hi I'm learning MySQL using MySQL Workbench Command Line Client v 5.6 in Windows 7.
I type my commands into a text editor, then from the text edtor I copy them onto the clipboard. To paste them into the Command Line Client (CLC) I must right click with the mouse and go to "paste" in the context menu.
I would like to forgo the mouse entirely. But in the CLC, none of the Windows keyboard shortcuts seem to work. CTRL+V for example produces "^v" while SHIFT+INSERT does nothing.
Is there a keyboard shortcut for "paste"?
Although this question is clearly not a programming question this a way you can do this.
First you start by selecting the window with the command line. This can be done by alt + tab. Then when the command line windows is active you can paste the content of your clipboard with: alt + space Then go trough the menu with e and then p. The letters will dependent on the language from your windows OS.
If you are using Win 10, you can turn on CTRL + C and CTRL + V shortcuts to work in the command prompt:
If anyone else was trying to paste the password directly into the MySQL "Enter password" prompt, use ctrl+shift+v instead of ctrl+v
i usually edit files in sublime text 2 that can also be edited and compiled with another program. As i have them already opened in sublimetext i do the following:
right click and choose "copy file path" (to clipboard)
Win+R to open windows run dialog
CTRL+V to paste the file path
hit enter to open the file with the associated program
i wonder some shortcut can be configured so it automatically starts the opened file with its associate program
thanks in advance
This can be done. I was in a very similar situation using Sublime as my editor of choice over the default SAS program editor. I was able to use the win32com.client.dynamic.Dispatch module to connect to SAS via OLE and pass text from Sublime directly to SAS using Sublime's build system to call my plugin. Making the connection was the easy part, it was the other processing that I had to do which was the time consuming part, but since you want to pass just a file name or the entire contents of your file, this should be a fairly straightforward plugin. Since I do not know what program you wish to open, here is the code that makes my implementation work. Maybe you caan glean something out of this.
def send_to_sas_via_ole(selected_code):
from win32com.client.dynamic import Dispatch
sasinstance = Dispatch("SAS.Application")
# submit the lines to sas
for selection in selected_code:
# for some reason cannot send as one big line to SAS, so split into
# multipe lines and send line by line
for line in selection.splitlines():
sasinstance.Submit(line)
and then the call in the run method of my plugin class:
class RunSasMakoCommand(sublime_plugin.TextCommand):
def run(self, edit):
try:
send_to_sas_via_ole(selected_code)
except Exception as e:
print "\n".join(selected_code)
print "Couldn't connect to SAS OLE"
print e
Good luck!
Open 'regedit.exe';
Navigate to
HKEY_CLASSES_ROOT\Applications\sublime_text.exe\shell\open\command
correct the path. Exit 'regedit.exe'
(optional) restart 'explorer.exe' or reboot your PC.
enjoy :p;
Right click on the file, press "Properties". You will see Opens with SomeProgram and then a change button. Click on the change button, and then look through the list for Sublime Text, if you can't find it, you can choose an application using the file explorer, from there you can navigate to C:\Program Files\Sublime Text 2 and choose sublime_text.exe
I am working on setting up my own keymaps and was wondering if there is the option to set keys to switch the file type that is being worked on. So for example, if I have a regular plain text file and want it to be a css file, I would have a keymap that would change the document type to css. Possible? If so, please explain to me how you have done this.
Rob
The keybinding for this would be:
{
"keys": ["YOUR_SEQUENCE"],
"command": "set_file_type",
"args": {"syntax": "Packages/CSS/CSS.tmLanguage"}
}
How to discover command names:
Open the console
Type sublime.log_commands(True)
Go to an open tab
Open the command palette and type Set Syntax: CSS
The name of the command and it's required arguments should be logged to the console. From there you just put it in the right JSON syntax.
While the individual shortcut solution is great, it requires editing the config files and most importantly remembering all the shortcuts you create for each sytax.
In the case of switching file formats it might be more useful to quickly access the required format via the command palette:
Press CTRL+SHIFT+P to bring up the Command Palette
Type CSS to highlight Set Syntax: CSS command
Press ENTER
This is great because it provides quick access to all the formats available. Start typing set syntax... and all the available formats will be shown.