-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Named snippet syntax is confusing #2
Comments
Proposal:
|
Address #2 by changing how named snippets work. - Named snippet functionality is relegated to special snippet columns, which are optional. - Status markers never change meaning depending on snippet context. - The hintful hunk header specifies number of snippet columns and whether to use newline markers. This increases not only clarity, but also expressivity: - An arbitrary number of snippets can be active, and in content lines they can be combined with files arbitrarily. - It is now possible to use named snippets for line-based content without using newline markers.
Address #2 by changing how named snippets work. - Named snippet functionality is relegated to special snippet columns, which are optional. - Status markers never change meaning depending on snippet context. - The hintful hunk header specifies number of snippet columns and whether to use newline markers. This increases not only clarity, but also expressivity: - An arbitrary number of snippets can be active, and in content lines they can be combined with files arbitrarily. - It is now possible to use named snippets for line-based content without using newline markers.
The proposal above is implemented on branch On the main branch |
The named snippet syntax is rather confusing, since a snippet line changes the meaning of other status markers.
For example, depending on what sides have an active snippet, the space status marker can have four different meanings:
Similarly, one needs to know what sides have active snippets to understand the status markers
+
,-
and_
.The text was updated successfully, but these errors were encountered: