1. 25 Mar, 2018 4 commits
    • Mariusz Glebocki's avatar
      Allow view-controlling keys in read-only mode · b94162c1
      Mariusz Glebocki authored
      Allow to use scrolling (Shift+Up/Down/PgUp/PgDown/Home/End) and a key
      for showing URL hints when the view is in read-only mode.
      Test Plan:
      * Prepare
        * Turn on scrollback
        * Set at least one modifier key for "Show URL hints" (edit profile → advanced)
        * Generate a few screens of text in Konsole
        * Display some URL (e.g. `echo 'www.kde.org'`)
        * Display current time every second: `while sleep 1; do printf '\r%s' "$(date)"; done`
        * Turn on read-only mode
      * Patch tests
        * Scroll the view with Shift+Up/Down/PgUp/PgDown/Home/End - the view should scroll
        * Hold down URL hint key - the URL should be underlined with square and a digit on the left
        * Press <URL-hint-key>+1 - the URL should open in a web browser
      * Regressions tests
        * Press different keys (including Ctrl+C, Ctrl+Z, etc; skip those mapped to Konsole actions) - nothing in terminal should happen
        * Press Ctrl+S - the time should not stop updating
      Reviewers: #konsole, hindenburg
      Reviewed By: #konsole, hindenburg
      Subscribers: hindenburg, #konsole
      Tags: #konsole
      Differential Revision: https://phabricator.kde.org/D11668
      (cherry picked from commit 6635190c)
    • Ahmad Samir's avatar
      Make the key binding editor dialog bigger · fefd2e56
      Ahmad Samir authored
      The first column in the key binding editor dialog usually has long lines of
      text, to improve usability set a minimum size of 480x430 for that dialog
      and an initial size of 500x500. Also set the initial width of that column
      to 300.
      Reviewers: #konsole, hindenburg
      Reviewed By: #konsole, hindenburg
      Subscribers: ngraham, #konsole
      Tags: #konsole
      Differential Revision: https://phabricator.kde.org/D11637
      (cherry picked from commit bd560c56)
    • Kurt Hindenburg's avatar
      fix spelling issue · 3b79409e
      Kurt Hindenburg authored
      (cherry picked from commit da9e86e3)
    • Joshua Noack's avatar
      Disable menu actions when read-only/locked · 429ad275
      Joshua Noack authored
      This patch addresses the following points:
      - Ignore most DBus methods
      - Disable the following actions:
      clear-history, clear-history-and-reset, edit-current-profile, switch-profile
      adjust-history, send-signal, zmodem-upload, edit-rename (tab bar)
      - Session updates all views correctly when readonly changes
      Test Plan:
      - Actions do not show when locked
      - DBus methods are ignored when locked
      - Multiple views in one session get correctly updated
      Reviewers: hindenburg, #konsole
      Reviewed By: hindenburg, #konsole
      Subscribers: ngraham, hindenburg, #konsole
      Tags: #konsole
      Differential Revision: https://phabricator.kde.org/D11341
      (cherry picked from commit 3a1d350b)
  2. 19 Mar, 2018 1 commit
  3. 17 Mar, 2018 1 commit
    • Mariusz Glebocki's avatar
      Fix search result rectangle position · 6b8cf60a
      Mariusz Glebocki authored
      Include top margin in the rectangle's vertical position, so it will
      be drawn in correct position when TerminalCenter is set and/or
      TerminalMargin is larget than 0.
      Test Plan:
        - Run `konsole -p TerminalMargin=8`
        - Display something
        - Run search and search for something
        - The blue rectangle should cover current result line
      Reviewers: #konsole, hindenburg
      Reviewed By: #konsole, hindenburg
      Subscribers: hindenburg, #konsole
      Tags: #konsole
      Differential Revision: https://phabricator.kde.org/D11412
  4. 16 Mar, 2018 2 commits
    • Kurt Hindenburg's avatar
      fix argument names to match declarations · a9aad431
      Kurt Hindenburg authored
    • Ahmad Samir's avatar
      Preserve tab titles set by the user, when applying profile changes · 78beb596
      Ahmad Samir authored
      When applying profile changes don't touch tab titles explicilty set by
      the user (via the rename tab dialog); the same goes when previewing
      color schemes.
      Update the tab text only if the user actually changed the the tab title
      fomart in the rename tab dialog.
      BUG: 354403
      FIXED-IN: 18.04
      Test Plan:
      - In a konsole window with 2 or more tabs, rename a tab using the
        rename-tab dialog
      - Open the Edit Profile dialog and change some settings and save, also
        try previewing some color schemes; note that the tab title changes
        are kept
      - In the Edit Profile dialog, change the tab format on the Tabs page,
        and apply; note that the tab title the was renamed by the user isn't
        changed but the tab(s) whose name wasn't changed are affected by the
        tab title format setting change
      - Open the rename-tab dialog, don't change anything and click OK; now
        konsole doesn't count that as a tab title change
      Reviewers: #konsole, hindenburg
      Reviewed By: #konsole, hindenburg
      Subscribers: #konsole
      Tags: #konsole
      Differential Revision: https://phabricator.kde.org/D11363
  5. 15 Mar, 2018 1 commit
  6. 14 Mar, 2018 1 commit
    • Kai Uwe Broulik's avatar
      Default to show tab bar only when needed · 7f8baec6
      Kai Uwe Broulik authored
      Summary: It clutters the UI and can still be permanently enabled in settings if so desired.
      Test Plan:
      Konsole looks a lot cleaner out of the box now
      Reviewers: #vdg, mart, hindenburg
      Reviewed By: hindenburg
      Subscribers: ahmadsamir, romangg, ngraham, #konsole
      Tags: #konsole
      Differential Revision: https://phabricator.kde.org/D11258
  7. 13 Mar, 2018 2 commits
  8. 12 Mar, 2018 5 commits
  9. 11 Mar, 2018 5 commits
  10. 10 Mar, 2018 3 commits
    • Kurt Hindenburg's avatar
    • Ahmad Samir's avatar
      Only emulate up/down key presses for mouse scrolls on alternate screen · 17c77a87
      Ahmad Samir authored
      Konsole sends up/down key press events for mouse scrolls for apps that
      aren't interested in mouse events, such as less. Only do this when the
      terminal is using the alternate screen.
      Now scrolling up/down will be translated to up/down key presses only
      when the terminal is using the alternate screen but scrolling in a terminal
      using the primary screen will only scroll using the scrollbar, now it does
      not cycle through the shell history.
      Now the behavior matches xterm and and gnome-terminal.
      BUG: 355106
      FIXED-IN: 18.04
      Reviewers: hindenburg
      Reviewed By: hindenburg
      Subscribers: rkflx, ngraham, #konsole
      Tags: #konsole
      Differential Revision: https://phabricator.kde.org/D11146
    • Marco Martin's avatar
      use the terminal color scheme for the scrollbar · 2a71f063
      Marco Martin authored
      As discussed with VDG, color the scrollbar with the same colors as
      the terminal color scheme itself. It looks way cleaner and modern
      Test Plan: tested with several color schemes and several styles
      Reviewers: #konsole, #vdg, hindenburg
      Reviewed By: #konsole, #vdg, hindenburg
      Subscribers: hindenburg, zzag, ngraham
      Tags: #konsole
      Differential Revision: https://phabricator.kde.org/D11184
  11. 08 Mar, 2018 3 commits
  12. 07 Mar, 2018 1 commit
    • Joshua Noack's avatar
      Konsole: Use KMessageWidget in TerminalDisplay · bcbaf5d3
      Joshua Noack authored
      Depends on D10862
      This also fixes the overlapped scrollbar (see first screenshot).
      Test Plan: Tested before and after, behaviour is the same.
      Reviewers: #konsole, hindenburg
      Reviewed By: #konsole, hindenburg
      Subscribers: herrold, hindenburg, ngraham
      Tags: #konsole
      Differential Revision: https://phabricator.kde.org/D10935
  13. 06 Mar, 2018 3 commits
    • Kurt Hindenburg's avatar
      Konsole: Add read-only mode · 4f555265
      Kurt Hindenburg authored
      This patch adds a read-only option for TerminalDisplays. When active,
      all keyboard events are eaten. Mouse input is not affected and works like before.
      The setting is not persisted and only lasts for the duration of the session.
      VDG input is highly appreciated. Also, I'm not sure if I can just change the rc-files without bumping the version?
      FEATURE: 126930
      Test Plan:
      - Shortcuts still work
      - Paste and drop actions are disabled when readonly
      - Switching between read-only and normal tabs works as expected
      - Mouse input works like before
      Reviewers: #konsole, hindenburg
      Reviewed By: #konsole, hindenburg
      Subscribers: hindenburg, ngraham, #konsole
      Tags: #konsole
      Differential Revision: https://phabricator.kde.org/D10862
    • Kurt Hindenburg's avatar
      Force Qt5 to use named qtemporary files · 66055960
      Kurt Hindenburg authored
      Recent Qt5 versions use unnamed temporary files by default when
      available; force to use named files.  Any type of scroll/history
      debugging w/o named files is a waste of time.
    • Script Kiddy's avatar
      GIT_SILENT made messages (after extraction) · 47f475d5
      Script Kiddy authored
  14. 01 Mar, 2018 1 commit
  15. 28 Feb, 2018 4 commits
    • Harald Sitter's avatar
      sort headers in editprofiledialog · e2e2ef66
      Harald Sitter authored
      all qts are with the qts and all kdes are with the kdes and both of them
      are in alphabetical order.
      almost drove me mad when working on this file xD
    • Harald Sitter's avatar
      add knewstuff support for color schemes · 97d9ed94
      Harald Sitter authored
      schemes are supplied by `Konsole Color Scheme` category on store.kde.org
      - new manager helpers to unload a theme and check a file's name validity
      - new Get New.. button to start the KNS download dialog
      - upon KNS completion we'll attempt to load all installed files as schemes
      - for KNS entities which failed to load anything we'll show a warning as
        the theme is malformed
      - for removal we'll first try to remove schemes through KNS to avoid its
        registry going out of sync with the on-disk "installedness" of an entity
      - properly disable copying of the scheme manager (needs to be private)
      FEATURE: 18.04.0
      CHANGELOG: Support for downloading color schemes from the KDE store
      Test Plan:
      category is T8053 (can also use `KDE Color Scheme KDE4` for testing)
      - get new -> install scheme -> close -> shows up in list
      - remove from list -> get new -> not listed as installed
      - install random stuff from kde color scheme category -> close ->
        warning should be displayed
      - install scheme -> get new -> remove scheme via dialog -> close ->
        not listed as installed
      Reviewers: hindenburg
      Subscribers: #konsole
      Tags: #konsole
      Differential Revision: https://phabricator.kde.org/D10766
    • Ahmad Samir's avatar
      Restore zoom fonts after changing profile with ESC sequences · 18014c75
      Ahmad Samir authored
      When a profile property is changed via the command line or an ESC sequence
      a new temp profile is created and applied, this resets the zoom values in
      the views connected to the session.
      Save zoom font sizes and restore them after the new profile is applied.
      BUG: 386643
      FIXED-IN: 18.04
      Reviewers: hindenburg
      Reviewed By: hindenburg
      Subscribers: ngraham, #konsole
      Tags: #konsole
      Differential Revision: https://phabricator.kde.org/D10650
    • Ahmad Samir's avatar
      Match xterm behaviour when pressing Ctrl+Backspace · 5345bbb0
      Ahmad Samir authored
      Change the default keyboard translator to match xterm behaviour:
       - Pressing Backspace without any modifiers sends '^?', ASCII DEL
       - Pressing Control+Backspace sends '^H', BS character
      BUG: 391075
      Test Plan:
      - Before applying the patch pressing Ctrl+V (to insert verbatim) then
        Backspace, sends '^?'; the same happens with Ctrl+Backspace
      - With the patch:
        - pressing Ctrl+V then Backspace sends '^?'
        - pressing Ctrl+V then Ctrl+Backspace sends '^H'
      Reviewers: #konsole, hindenburg
      Reviewed By: #konsole, hindenburg
      Subscribers: ngraham
      Tags: #konsole
      Differential Revision: https://phabricator.kde.org/D10884
  16. 27 Feb, 2018 1 commit
  17. 25 Feb, 2018 2 commits