Menu

#10 History selection does automatic paste

Future_Release
closed
Feature (19)
5
2013-03-11
2009-02-06
No

Thanks for your work on this program. I'd like to suggest that when you select an item from history, it not only copies that to the clipboard but also pastes the clipboard to the current cursor location. I always have to immediately follow my history shortcut and selection by a control-V to do the actual paste.

Of course a switch to control this behaviour might be appropriate for those who don't like it.
Thanks.

Discussion

  • Nobody/Anonymous

    Yes please! I requested this last year via the old Google Code tracker. It's the one and only feature I really want. Here's hoping.... :)

     
  • Anonymous

    Anonymous - 2009-04-10
     
  • Nobody/Anonymous

    +1

     
  • JohnM

    JohnM - 2010-01-28

    Yes, it is much more convenient for the paste to happen automatically after the item is selected, rather than having to press CTRL-V afterwards.

    So I made a modification to do this. When the history item is selected it runs this script:
    ~/.config/parcellite/histrun.sh

    This one-line script contains a command to send ctrl-V:
    xte 'keydown Control_L' 'key v' 'keyup Control_L'

    I modified "main.c", and added the following code to the end of the function "item_selected()":

    /* Execute shell script after item is selected (~/.config/parcellite/histrun.sh). */

    #define HISTRUN_FILE DATA_DIR "/histrun.sh"
    gchar* histrun_path = g_build_filename(g_get_home_dir(),
    HISTRUN_FILE,
    NULL);

    if (g_file_test(histrun_path, G_FILE_TEST_EXISTS))
    {
    system((gchar*) histrun_path);
    }
    g_free(histrun_path);

     
  • W.M

    W.M - 2010-12-26

    Could Parcellite send keystroke after selecting an item in history list?

    I know in windows there are some clipboard managers could do this, but I didn't found this feature on any linux ones.

    The working flow:
    ctrl + alt + H (summon history list)
    Up and Down (navigation)
    Enter (select and send Ctrl + V)
    or
    Space (only select item to clipboard)

    Then I could spare pressing Ctrl + V manually.

    Maybe it could offer a customise key list for different selection action to send paste keystroke for different application:

    V (select and send Ctrl + V)
    M (select and send MiddleClick)
    P (select and send Ctrl + P)

    Is there any limitation so could not implement this feature on Linux?

     
  • Richard Taytor

    Richard Taytor - 2012-02-11

    this is essential

    please implement it

     
  • Alister Hood

    Alister Hood - 2012-06-03

    > Could Parcellite send keystroke after selecting an item in history list?
    >
    > I know in windows there are some clipboard managers could do this, but I
    didn't found this feature on any linux ones.

    It is available in Clipit (if you have xdotool installed, which is kind of like xte but better ;) ).

     
  • rickyrockrat

    rickyrockrat - 2013-01-15

    It's in the que.

     
  • rickyrockrat

    rickyrockrat - 2013-01-15
    • assigned_to: xyhthyx --> rickyrockrat
     
  • rickyrockrat

    rickyrockrat - 2013-03-11

    Please see 1.1.4. This feature was added in 1.1.1, but requires xdotool.

     
  • rickyrockrat

    rickyrockrat - 2013-03-11
    • status: open --> closed
     

Log in to post a comment.