Results 1 to 6 of 6

Thread: konsole backward predictive typing

  1. #1
    Junior Member registered user
    Join Date
    Feb 2006
    Location
    southafrica
    Posts
    21

    konsole backward predictive typing

    I suggest that konsole modified to be backward predictive when typing commands in. What this means is that you can simply type maybe the first 2 letters of a previous command typed in the same session and simple press the <tab> reveiling all possibilities. Example:

    >> mount -w /dev/hdd1 /mnt/gamedrive

    after multiple commands being entered then simply type the following:
    >> mou <tab> and console would load the command above!

    This function is the core of simplicity for those who have programmed in MATLAB, it realy makes things easy

    Mduduzi

  2. #2
    Senior Member registered user
    Join Date
    Nov 2003
    Posts
    203
    But you already have that, it's standard Linux/Unix. Assuming the bash shell, in your example, insteat of "mou tab" try typing "!mou". (without the double quotes, of course)

  3. #3
    Senior Member registered user
    Join Date
    Apr 2005
    Location
    italy
    Posts
    245

    Re: konsole backward predictive typing

    Quote Originally Posted by mduduzi
    I suggest that konsole modified to be backward predictive when typing commands in. What this means is that you can simply type maybe the first 2 letters of a previous command typed in the same session and simple press the <tab> reveiling all possibilities. Example:

    >> mount -w /dev/hdd1 /mnt/gamedrive

    after multiple commands being entered then simply type the following:
    >> mou <tab> and console would load the command above!

    This function is the core of simplicity for those who have programmed in MATLAB, it realy makes things easy

    Mduduzi
    I'm doing something similar by adding the following two lines to the '/etc/profile' file:
    bind '"\e[A"':history-search-backward
    bind '"\e[B"':history-search-forward

    Now after typing some charts you can scroll up ad down the history with up and down arrows keys.

  4. #4
    Junior Member registered user
    Join Date
    Feb 2006
    Location
    southafrica
    Posts
    21
    I haven't tried the script you have provided above but i tried the usage of "!" before the command i want to run. But this only runs the previous command which is not what i want. It would be great if this "!" gave you a list of the previous commands which it displays them in a list which i can chose by means of numerical numbers

    I will try the script provided above and report feedback

  5. #5
    Senior Member registered user
    Join Date
    Nov 2003
    Posts
    203
    if you type the command

    fc -l

    bash will list the previous 16 commands with a number in front of each one

    Then if you want to run the command numbered 11, say, then just enter

    !11

    If you want a list of the previous 20 commands instead of just 16 then type

    fc -l -20

  6. #6
    Junior Member
    Join Date
    Mar 2008
    Posts
    2

    Try Cntl-R

    The auto completion that is enabled when you press Cntl-R might be close to what you want.

Similar Threads

  1. One step forward and one step backward - new Xserver bug?
    By yfan_ca in forum Hardware & Booting
    Replies: 0
    Last Post: 09-16-2008, 09:57 PM
  2. how to resize a window from konsole?
    By crazy_monkey108 in forum Hdd Install / Debian / Apt
    Replies: 2
    Last Post: 06-24-2006, 10:44 PM
  3. Turn off sound when typing
    By startling in forum General Support
    Replies: 0
    Last Post: 05-01-2006, 03:05 PM
  4. Konsole output goes where??
    By DougE in forum General Support
    Replies: 3
    Last Post: 07-08-2004, 11:40 PM
  5. KONSOLE QUESTION
    By pigface in forum General Support
    Replies: 3
    Last Post: 09-23-2003, 01:01 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Dell PowerEdge R630 8SFF 2.6Ghz 20-Core 128GB Mem 2x10G+2x1G NIC 2x750W PSU picture

Dell PowerEdge R630 8SFF 2.6Ghz 20-Core 128GB Mem 2x10G+2x1G NIC 2x750W PSU

$399.04



Intel XEON E5-2699 V3 CPU PROCESSOR 18 CORE 2.30GHZ 45MB L3 CACHE 145W SR1XD picture

Intel XEON E5-2699 V3 CPU PROCESSOR 18 CORE 2.30GHZ 45MB L3 CACHE 145W SR1XD

$45.00



Dell PowerEdge R740XD Server | 2x Gold 6140 36 Cores | H730 | Choose RAM/ Drives picture

Dell PowerEdge R740XD Server | 2x Gold 6140 36 Cores | H730 | Choose RAM/ Drives

$2800.00



Dell Poweredge R640 Server | 2x Silver 4114 20 Cores | 192GB | 8x HDD Trays picture

Dell Poweredge R640 Server | 2x Silver 4114 20 Cores | 192GB | 8x HDD Trays

$1939.99



Intel SR2JT Xeon E5-2683 v4 2.10GHz 16-Core CPU Processor picture

Intel SR2JT Xeon E5-2683 v4 2.10GHz 16-Core CPU Processor

$21.96



Intel Xeon E5-2680 v4 2.4GHz 35MB 14-Core 120W LGA2011-3 SR2N7 picture

Intel Xeon E5-2680 v4 2.4GHz 35MB 14-Core 120W LGA2011-3 SR2N7

$17.99



Intel Xeon Gold 6140 SR3AX 2.3GHz 18-Core Processor CPU picture

Intel Xeon Gold 6140 SR3AX 2.3GHz 18-Core Processor CPU

$39.99



Intel Xeon E5-2699v4 SR2JS 2.2GHz 22-Core 55MB 145W Server Processor CPU picture

Intel Xeon E5-2699v4 SR2JS 2.2GHz 22-Core 55MB 145W Server Processor CPU

$144.95



Dell Precision Tower 7910 | 2x Intel Xeon E5-2643 V3 | 32GB RAM | No HDD | No OS picture

Dell Precision Tower 7910 | 2x Intel Xeon E5-2643 V3 | 32GB RAM | No HDD | No OS

$179.95



HP Workstation Z640 2x Xeon E5-2623V4 32GB Ram Dual 256GB SSD K420 Linux GA picture

HP Workstation Z640 2x Xeon E5-2623V4 32GB Ram Dual 256GB SSD K420 Linux GA

$234.98