liquidaty / zsv

zsv+lib: tabular data swiss-army knife CLI + world's fastest (simd) CSV parser
MIT License
209 stars 15 forks source link

sheet: support hyperlink-like capability in cells #294

Open liquidaty opened 3 days ago

liquidaty commented 3 days ago

Use case example: pivot table (see #293) drill-down.

After running and viewing a pivot table, each cell of the first column of the table should be visually different (e.g. blue+underline) to indicate that it has a "hyperlink"-like capability. When the user navigates to any such cell and presses Return, it should initiate a callback that "drills-down" into that cell and shows a new buffer with only the rows of data that correspond to that single row of the pivot table.

Implementation can be:

  1. Extend key event handler registration to offer buffer-specific event handler
  2. Add API function to specify a list of screen_buffer cells and their related format; store this as a 2D vector element stored as an additional property of the screen buffer struct
liquidaty commented 2 days ago

WIP: https://github.com/liquidaty/zsv/pull/296