Results 1 to 5 of 5

Thread: Sorting the selection in Kate

  1. #1
    Join Date
    Jun 2006
    Location
    Antarctica
    Beans
    500
    Distro
    Kubuntu 12.04 Precise Pangolin

    Sorting the selection in Kate

    Hello all,
    Kate has lately became my editor of choice while in a GUI. But I find it lacks many not so advanced features. In particular I would like the possibility to sort a block of selected text, line by line. I see a [Configure][Extensions][Scripts] menu, but it's all blanks. Am I missing something ?

    Is there a simple way to pipe the selection through a command line and replace the block with the result ?

  2. #2
    Join Date
    Apr 2012
    Beans
    4

    Re: Sorting the selection in Kate

    I know this thread is old, but because it's one of the first results in Google let me quote form the KWrite-Devel mailing list[1]:

    Install the text filter plugin, select lines, activate the plugin (tools->text
    filter) and enter the command 'sort' (given sort (1) is installed on your
    (uinx) system)
    This worked for me

    [1] http://lists.kde.org/?l=kwrite-devel&m=118270596423948

  3. #3
    Join Date
    Jun 2006
    Location
    Antarctica
    Beans
    500
    Distro
    Kubuntu 12.04 Precise Pangolin

    Re: Sorting the selection in Kate

    Thanks. I had figured it out earlier and should have posted a reply here. I just with the last command would remain in the box and also that you were able to recall the last command with a simple shortcut key.

  4. #4
    Join Date
    Mar 2007
    Beans
    Hidden!

    Re: Sorting the selection in Kate

    Does anyone know of a plugin with a GUI dialog to select sort options (like the gedit sort plugin)?

  5. #5
    Join Date
    Jun 2006
    Location
    Antarctica
    Beans
    500
    Distro
    Kubuntu 12.04 Precise Pangolin

    Re: Sorting the selection in Kate

    You might as well learn the 2~3 options to sort that you use regularly and use those with Ctrl-\, it'll be faster than any GUI. 'man sort' and then mostly '-u', -f', '-n', '-r'

Tags for this Thread

Bookmarks

Posting Permissions

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