improve custom selection #1

Open
opened 2025-11-11 22:08:07 +00:00 by j · 1 comment
Owner

on the status view, allow selecting not just file, but also diff lines for each change in a file

have some "marker" that gets added for each selection (files and lines)

from this you can do other actions:

  • split (compact selection into a change and create a new change with the remainder from it)
  • restore (discard those selected changes)
on the status view, allow selecting not just file, but also diff lines for each change in a file have some "marker" that gets added for each selection (files and lines) from this you can do other actions: - split (compact selection into a change and create a new change with the remainder from it) - restore (discard those selected changes)
j added this to the neojjit project 2025-11-11 22:08:07 +00:00
Author
Owner

look at the [FILESETS] argument that can be passed to jj split, must it be interactive? how can an external selection (selected lines, and not just files) be "passed into" split? 🤔... worst case we would need to create something that can "undo" a diff (actually undo all the other diffs than the ones selected, keep in memory, and jj new + reapply the diffs), then you should have recreated the jj split behaviour "from scratch"... presumably this is not the way to go, and this is overthinking it.

look at the `[FILESETS]` argument that can be passed to `jj split`, must it be interactive? how can an external selection (selected lines, and not just files) be "passed into" split? 🤔... worst case we would need to create something that can "undo" a diff (actually undo all the other diffs than the ones selected, keep in memory, and `jj new` + reapply the diffs), then you should have recreated the `jj split` behaviour "from scratch"... presumably this is not the way to go, and this is overthinking it.
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
j/neojjit#1
No description provided.