Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8932279
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T09:17:52+00:00 2026-06-15T09:17:52+00:00

Basically I’m using Sublime Text 2 to edit and (hopefully) run Python files. At

  • 0

Basically I’m using Sublime Text 2 to edit and (hopefully) run Python files. At the minute though, to run a file, I’m having to tap Ctrl + Shift + P, type at least two letters (P, Y) and hit enter. Then the script runs. I want to assign this to a hotkey. I therefor ventured into the world of sublime-keymap files, and nearly died of boredom.

A sample command:

{ "keys": ["ctrl+v"], "command": "paste" },

My attempt:

{ "keys": ["f5"], "command": "SublimeREPL: Python - RUN current file" },

Could someone please inform me of what mistake it is that I’m making?
How can I go about not making that mistake?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T09:17:53+00:00Added an answer on June 15, 2026 at 9:17 am

    You may try the build system, as morphyn suggested, but I’ll address the issue of using SublimeRepl (and key bindings). The command you want isn’t the text from the command palette, but the command actually running. After a quick look through the plugin, I tracked down the commands file here. This file specifies what will be shown in the command palette, and what will be run when selected. For your specific case, you will want to create the following in your User defined key maps (accessible through Preferences -> Key Bindings - User, but I think you found that already).

    {
        "keys": ["f5"],
        "command": "run_existing_window_command", "args":
        {
            "id": "repl_python_run",
            "file": "config/Python/Main.sublime-menu"
        }
    }
    

    I haven’t run it myself, but that should work.

    Hope that helps.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Basically, I'm using python to print out some information in the terminal and some
Basically I need to get older version of a file in the repository without
basically I want to validate whether or not a text box is a certain
Basically I have converted a tab delimited txt file into a list containing a
basically i would like to display .doc file in WWW, i've tried to fetch
Basically what I want to do it this: a pdb file contains a location
Basically, something better than this: <input type=file name=myfile size=50> First of all, the browse
Basically, I'm trying to tap into the Soap pipeline in .NET 2.0 - I
Basically I want to know how to set center alignment for a cell using
Basically I have some simple code that does some things for files and I'm

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.