You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: doc/Operations.md
+36-4Lines changed: 36 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -145,15 +145,15 @@ With
145
145

146
146
147
147
148
-
As you can see, we can actually use non-plugging commands that move the cursor in between them and there's still no problem. The whole succession think breaks and the initial origin is reset only when there is change introduced.
148
+
As you can see, we can actually use non-plugging commands that move the cursor in between them and there's still no problem. The whole succession thing breaks and the initial origin is reset only when there is change introduced.
149
149
150
150
151
-
But it is very important to note that the initial origin does not automatically reset when there is change. It with only set off the next selection query. This is very important because it allows you to actually process text at some location you've jumped into and yet retain your point of origin to return to!
151
+
But it is very important to note that the initial origin does not automatically reset when there is change. It will only reset after the next selection query. This is very important because it allows you to actually process text at some location you've jumped into and yet retain your point of origin to return to!
152
152
153
153
154
154

155
155
156
-
This is something that would become very important when we discuss prefix operations!
156
+
This is something that will become very important when we discuss prefix operations!
157
157
158
158
159
159
@@ -692,17 +692,49 @@ When we talked earlier about prefix operations, it was briefly mentioned that th
692
692
693
693
To illustrate this using the `edit` operation
694
694
695
-

695
+

696
+
697
+
but I do emphasize on the `end of the day` ! All these are double queries consist of
698
+
699
+
* a selection query
700
+
701
+
* an operation command
702
+
703
+
andwhile one of those double commands is running, there exists a temporary state which
704
+
705
+
* the first selection query can modify asif everything was normal
706
+
707
+
*is passed to the operation command to work with
708
+
709
+
*is discarded later to maintain silence
696
710
711
+
If these sounds confusing, fear not! This is to ensure that the actions taken, whether selecting or inserting or removing text, do not differ from the two-step approach. Compare
697
712
713
+

698
714
715
+
with
699
716
717
+

700
718
701
719
720
+
as you can see the actual actions taken are identical with either approach. What changes iswith a one-step approach we still maintain our old initial origin to return back to! To convince you even further
702
721
722
+

703
723
704
724
705
725
726
+
These of course does give us some extra flexibility and can power trickier workflows
0 commit comments