1. 24 Jun, 2022 1 commit
  2. 15 May, 2022 2 commits
  3. 07 Apr, 2022 1 commit
  4. 30 Mar, 2022 2 commits
  5. 28 Mar, 2022 1 commit
  6. 22 Mar, 2022 1 commit
  7. 14 Feb, 2022 1 commit
  8. 03 Feb, 2022 3 commits
    • Waqar Ahmed's avatar
      Only match last section of pattern when matching for path · 602386d3
      Waqar Ahmed authored
      Since filenames are very unlikely to contain a '/', take the last portion
      of the pattern to match filename because otherwise we just waste cpu
      trying to match a pattern that will never match a path.
      
      Also, when just matching filename, if the file path == file name,
      give it extra score. Such files are files that are present in project
      root dir and matching them directly becomes hard if there are many
      files with the same name in the project. Consider:
      
      CMakeLists.txt
      src/CMakeLists.txt
      ...
      
      On typing "cmake"
      
      the first one will appear at top. If one really wants some other cmake
      file, one can jump to that easily using path matching: s/cmake
      602386d3
    • Waqar Ahmed's avatar
      Extra point for already opened file · c2105380
      Waqar Ahmed authored
      If a file is already opened, give it one extra point. This gives priority
      to opened files over non-opened ones by a slight margin and is mainly
      useful for cases where you have two files with very similar names and
      same score.
      
      kate.h => opened
      kate.cpp => not opened
      
      both have same score, but if .h is opened, it will appear above cpp
      c2105380
    • Waqar Ahmed's avatar
      Only match filename by default in quickopen · 01abd0d5
      Waqar Ahmed authored
      Reasoning:
      Firstly, I think it was just a very poor decision to match both if
      filename matched. When filename got matched, it is unnecessary to match
      the path and can lead to worse results if we do it. Consider files:
      
      path/to/FileView.cpp
      files/views/to/FileViewModel.cpp
      ...
      
      First file match will happen, which most likely gives us the first file
      for a pattern "fv". But then path matching which can ruin this result
      and give some other irrelevant match a higher score leading to worse
      results in quickopen
      
      In kate, we work with files (from a user POV). User mostly sees filename
      and will most likely be matching against file names, and rarely against
      paths.
      
      The other benefit that this gives is HUGELY better performance. This is
      atleast 2x faster, so with large repos quick open will be much nicer to
      use.
      
      if one really wants to match a path, then specifying a pattern like:
      
      src/fv
      
      will do it. This is already supported, so it isn't something new.
      01abd0d5
  9. 18 Jan, 2022 1 commit
    • Christoph Cullmann's avatar
      always sort views by usage · b1802f4a
      Christoph Cullmann authored
      this will allow e.g. the KTextEditor implementation
      to be able to access the proper most recently used
      view without extra interfacing
      
      naturally one will need to adapt the documentation
      in the interface, but I think this is nicer than
      to expose and extra sortedView thing, given the
      sorting should not be that costly anyways
      b1802f4a
  10. 29 Dec, 2021 2 commits
  11. 31 Oct, 2021 1 commit
  12. 10 Oct, 2021 1 commit
  13. 06 Aug, 2021 1 commit
  14. 03 Jul, 2021 1 commit
  15. 16 May, 2021 2 commits
  16. 04 May, 2021 6 commits
  17. 04 Apr, 2021 2 commits
    • Waqar Ahmed's avatar
      Dont set cursor position at all if cursor invalid · ae37e978
      Waqar Ahmed authored
      - Cursor isn't set if line is invalid
      - Some Event handling is removed as we inherit from QMenu and its just
        redundant
      - No input line clear() anymore. Widget just gets destroyed afterwards, who cares
      ae37e978
    • Waqar Ahmed's avatar
      Quick open improvements · aa785883
      Waqar Ahmed authored
      
      
      - Allow opening a file at a specifc line:col. This will happen if you
      add a ':' at the end and specify line and column. For example:
      
      "kaapp.cpp:201:18"
      
      will open a file the selected file in tree at line 201 and column 18 (if
      they exist).
      - On clearing filter text, try to restore the sorting i.e., bring opened
      documents at the top again.
      
      Signed-off-by: Waqar Ahmed's avatarWaqar Ahmed <waqar.17a@gmail.com>
      aa785883
  18. 21 Mar, 2021 2 commits
  19. 01 Mar, 2021 1 commit
  20. 27 Feb, 2021 1 commit
  21. 17 Feb, 2021 1 commit
  22. 12 Feb, 2021 1 commit
  23. 08 Feb, 2021 2 commits
  24. 07 Feb, 2021 2 commits
  25. 05 Feb, 2021 1 commit