1. 16 Jul, 2020 2 commits
  2. 15 Jul, 2020 1 commit
  3. 05 Jul, 2020 1 commit
  4. 01 Jul, 2020 6 commits
  5. 06 Jun, 2020 2 commits
    • Ahmad Samir's avatar
      [FileFilter] Create HotSpot's for files in child dirs too · 1bcf7561
      Ahmad Samir authored
      Match files in subdirs of the current dir too, this enables opening
      files from the output of e.g. `grep`.
      
      Also use QSet::cbegin/cend to prevent detaching (if the container is not
      const, calling begin/end on it will make it detach).
      
      This partially reverts 0b489b0c.
      1bcf7561
    • Tomaz  Canabrava's avatar
      Add thumbnails for certain file types on mouse hover · 877fd0ca
      Tomaz Canabrava authored and Kurt Hindenburg's avatar Kurt Hindenburg committed
      This allows for a user configured thumbnail image to be displayed
      when the mouse is hovering over a file link.  Any file that KIO can
      transform into a thumbnail (image, video, folder) will be displayed.
      
      Simply move the mouse to a file while holding an user selected keypress
      (Alt, Shift, Control or a combination of them).  The default
      requires no key press.  The profile setting 'Underline files' much be
      enabled for this to work.
      
      !93
      
      FIXED-IN: 20.08
      FEATURE:
      GUI:
      CHANGELOG: Add thumbnails for certain file types on mouse hover
      877fd0ca
  6. 03 Jun, 2020 2 commits
    • Tomaz  Canabrava's avatar
      Only recalculate the directories when we change dirs · e713c90c
      Tomaz Canabrava authored and Kurt Hindenburg's avatar Kurt Hindenburg committed
      Whenever we trigger something that redraws the screen we trigger
      all the filters, and the FileFilter - that looks for files and folders
      in the current directory - is constantly re-triggered to.
      
      The creation of the vector / set containing all files takes now around
      30msec, but searching takes just 3 - 4 msec. If we only generate the
      list of files when we change directories, this goes down from 34 msec
      to just 4, making konsole consume less cpu, spend less energy and help
      with battery when we are selecting text or updating the screen with new
      data.
      
      This fails to highlight a file if the file is created after we read the
      files in the directory, as we are not updating the list of files
      anymore. Not an acceptable loss, we need to fix this, but not by
      re-reading all of the files in folders and subfolders on every mouse
      move.
      e713c90c
    • Tomaz  Canabrava's avatar
      Use QSet to search for strings instead of QStringList · 0b489b0c
      Tomaz Canabrava authored and Kurt Hindenburg's avatar Kurt Hindenburg committed
      The time that it takes to search a collection of just too many strings
      can take up to 48msec - tested triggering the code on /usr/lib with
      around 7000 files.
      
      changing to QSet this went down to 35msec. This is not a lot but
      it's triggered at *every* mouse move event, so the gain is cummulative
      
      The whole experience is a bit smoother.
      0b489b0c
  7. 31 May, 2020 2 commits
  8. 21 May, 2020 10 commits
  9. 27 Apr, 2020 1 commit
  10. 20 Apr, 2020 8 commits
  11. 14 Apr, 2020 1 commit
  12. 22 Mar, 2020 1 commit
    • Ahmad Samir's avatar
      [FileFilter] Create HotSpot's for files in child dirs too · 26f4a221
      Ahmad Samir authored
      When creating HotSpot's for local files, create them for files in the
      current dir and for files in sub-directories too.
      
      Re-format the code used to build the regex pattern for more readability
      (easier for seeing what the regex pattern will look like, I hope).
      
      Use a static QRegularExpression object, so as to only construct it once,
      the pattern doesn't change and this should help with performance. Also
      make createFileRegex() not static.
      
      Don't convert QList<QString> to QSet<QString>, without actual benchmarking
      it could be that QList is actually efficient here.
      
      Use const where appropriate.
      
      BUG: 416376
      26f4a221
  13. 30 Jan, 2020 1 commit
    • Tomaz  Canabrava's avatar
      Fix context menu actions when search bar is enabled · 96cda154
      Tomaz Canabrava authored and Kurt Hindenburg's avatar Kurt Hindenburg committed
      The actions are destroyed during a focusIn / focusOut, and recreated
      with the same content but different memory positions, and that
      killed the QActions inside of the menu.
      
      To trigger this is simple, open the search bar, type some url in
      konsole, and right click on it: you will not see the actions
      to copy and go to url.
      
      moving the related code to QSharedPointer fixes this by delaying
      the destruction of the pointer untill the menu is closed.
      96cda154
  14. 17 Dec, 2019 1 commit
  15. 24 Nov, 2019 1 commit