More Design and Planning for My "Xpander" [Abbv] Generator

 Initial Draft ideas for  special Xpander cases

The P4=(~)P3=(`) sequence:

In this case consideration, the user types the following sequence (each square bracketed [item] is a keystroke while curly bracket is multi-keys):

[space] {script name}
[P4] [P3]
[script type] {optional params k-v key name} [space]


To do this, the users hits Shift with the left thumb and Tilde with index to invoke [P4]  before letting go of Shift and hitting same Tilde key for generating at least a first [P3]  (there can be more P3's to follow) 

{script name} is one or more characters and specifies the name of a script to be run but does not include the registered file extension of the script (e.g. the (dot).py extension)

Before the {script name} there can be a null, or a space or a line feed (LFCR)
(Note: The null case occurs when there is no space to the left of the 
{script name}. it starts at slice index = 0 )

(Additional note: More "Edge" cases: What if [P4] is last char of input string? What if there is no [script type] after  [P3] ?? )

[script type] provides the registered file extension in the form of a single char abbreviation (an abv of the pgm type):

    a = 1 = Auto Hot Key (AHK) == execute an AHK script
    b = 2 = Batch (BAT)
    c= 3 = Chat GPT search ?????
    d= 4 = ?????
    t= 5 = Notepad for typing a text (txt) note
    p = 6 = 
Notepad++ for editing a code file
    v = 7 = VS Code f
or editing a code file

    g= google search
    j = google image search
    w = Wikipedia search

    m = 0 = h = ? = help / main menu / or followed by sub-menu specifier
 

{optional params k-v key name} = name of a key part of a dictionary k-v pair for extracting a set parameters to be used by the called script   

[P3] = run as a Python file (if the user hits P3 twice after the [P4] ) = runs a (dot).py file
    
[P3]  [P3]= ?= runs PyCharm ?? 
        [P3]  [P3] [P3] = ?= runs XXXX (if user hits P3 thrice after the [P4] ) = ???

TO BE CONTINUED ....

MORE TO EXPLORE

G4G -- OOP for Python -- Python OOP Concepts
    ^^^-- L15 : Object Oriented Programming - Python | Vamsi Bheemreddy | G4G
    ^^^-- 
bot


Comments

Popular posts from this blog

Links for Python Noobs

The Learn HOW to Learn Page

My 1st and 2nd OOP class definitions (aka What is an OOP class definition?)