Skip to content
Snippets Groups Projects
  1. Aug 23, 2022
  2. Aug 22, 2022
  3. Aug 21, 2022
  4. Aug 19, 2022
  5. Aug 18, 2022
  6. Aug 16, 2022
    • Albert Gräf's avatar
      Improved sort critera for relevance (hopefully). · ee211ffa
      Albert Gräf authored
      Built-in flag and live usage data are now combined into a single numeric
      relevance score, with a boost factor determining the weight of the
      former relative to the latter. This makes it easy to adjust the
      relevance order. Currently we have the boost factor at 50, which means
      that an external needs to have 51 uses before it gets preferred over a
      built-in with no uses at all. Is this too large? Too small? Also, should
      the fuse similarity score take precedence over relevance (currently it
      doesn't)? At present nobody knows, so let's give it a try and listen to
      user feedback to improve it.
      ee211ffa
    • Albert Gräf's avatar
      Scrape library information from the help patches. · 4201907b
      Albert Gräf authored
      If we find any LIBRARY meta data, record it in the completion index.
      Currently this is only used to list built-ins ("internal" library) first
      if sorting by relevance is enabled.
      4201907b
    • Albert Gräf's avatar
      Revisit the NAME entries. · 9284c5d9
      Albert Gräf authored
      We now properly deal with argument completions scraped from the NAME
      field, by checking for existing objects and argument completions, and
      updating the object accordingly.
      9284c5d9
    • Albert Gräf's avatar
      Enable relevance order by default. · 9cb86f2b
      Albert Gräf authored
      9cb86f2b
    • Albert Gräf's avatar
      Add an option to sort completions by relevance. · a47553b1
      Albert Gräf authored
      If enabled, this orders object and argument completions first by
      relevance, then alphabetically by object name, with "relevance"
      currently being defined as frequency of use (as given by the occurrence
      field in the completion data).
      
      As usual, the option is stored in the user preferences, its checkbox can
      be found on the GUI Preferences tab.
      a47553b1
    • Jonathan Wilkes's avatar
  7. Aug 15, 2022
  8. Aug 14, 2022
    • Albert Gräf's avatar
      Show all possible argument completions after entering an object. · 07f67195
      Albert Gräf authored
      As soon as the user types a blank after the object name, we now
      immediately show the list of available argument completions. This makes
      it easier to discover an argument completion when you're not sure how it
      begins.
      07f67195
    • Albert Gräf's avatar
    • Albert Gräf's avatar
      Mac compatibility fixes. · 3b58c3bc
      Albert Gräf authored
      3b58c3bc
    • Albert Gräf's avatar
      Handle some corner cases of help patches. · f55c3544
      Albert Gräf authored
      Deal with a bunch of special cases which have multiple objects
      documented in them. In this case we extract the object names from the
      NAME field of the META data and enter them into the completion index.
      f55c3544
    • Albert Gräf's avatar
      Fix null string in help browser. · 1b99789c
      Albert Gräf authored
      1b99789c
    • Albert Gräf's avatar
      Make sure that the index is rebuilt if autocompletion needs it. · 7ba56354
      Albert Gräf authored
      As generation of the autocompletion index is tied in with the generation
      of the help index, building the index can't be deferred until the help
      browser is opened if autocompletion is enabled. Previously this resulted
      in missing completions or autocompletion being completely unavailable
      until the help index was (re-)built. This commit addresses this bug by
      ensuring that the help index is generated right away when needed.
      7ba56354
    • Albert Gräf's avatar
      Add a keyboard command to remove completions from the index. · 16673986
      Albert Gräf authored
      There are reasons why you may want to get rid of completions. Sometimes
      the autocompletion index may contain completions that are not actually
      valid object names, or arguments that you may no longer wish to use.
      This commit introduces a new key binding for ctrl+y which lets you
      remove a completion from the index. (Note that ctrl+y is also used for
      the Tidy Up operation in the Edit menu, but the two bindings don't
      interfere with each other.)
      
      If a valid completion has been entered, ctrl+y will ask in the Pd
      console to confirm that you really want to remove the completion.
      Pressing ctrl+y again will remove the completion and report this in the
      console. Pressing Esc or any other key will cancel the operation.
      
      Note that we keep this low-profile by design. While a GUI implementation
      would be possible, the keyboard + console interface is quick and
      unobtrusive, and also much easier to implement.
      16673986
Loading