Skip to content
Snippets Groups Projects
  • Yorhel's avatar
    ff3e3bcc
    Add link path listing to information window · ff3e3bcc
    Yorhel authored
    Two differences compared to the C version:
    - You can now select individual paths in the listing, pressing enter
      will open the selected path in the browser window.
    - Creating this listing is much slower and requires, in the worst case,
      a full traversal through the in-memory tree. I've tested this without
      the same-dev and shared-parent optimizations (i.e. worst case) on an
      import with 30M files and performance was still quite acceptable - the
      listing completed in a second - so I didn't bother adding a loading
      indicator. On slower systems and even larger trees this may be a
      little annoying, though.
    
    (also, calling nonl() apparently breaks detection of the return key,
    neither \n nor KEY_ENTER are emitted for some reason)
    ff3e3bcc
    History
    Add link path listing to information window
    Yorhel authored
    Two differences compared to the C version:
    - You can now select individual paths in the listing, pressing enter
      will open the selected path in the browser window.
    - Creating this listing is much slower and requires, in the worst case,
      a full traversal through the in-memory tree. I've tested this without
      the same-dev and shared-parent optimizations (i.e. worst case) on an
      import with 30M files and performance was still quite acceptable - the
      listing completed in a second - so I didn't bother adding a loading
      indicator. On slower systems and even larger trees this may be a
      little annoying, though.
    
    (also, calling nonl() apparently breaks detection of the return key,
    neither \n nor KEY_ENTER are emitted for some reason)
model.zig 18.63 KiB