1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
|
<!-- Automatically generated by emacsconf-publish-after-page -->
<div class="transcript transcript-mainVideo"><a name="local-mainVideo-transcript"></a><h1>Transcript</h1>
<div class="transcript-heading">[[!template new="1" text="""Introduction""" start="00:00:01.887" video="mainVideo-local" id="subtitle"]]</div>[[!template new="1" text="""Hi everyone, my name is Wouter and I want to""" start="00:00:01.887" video="mainVideo-local" id="subtitle"]]
[[!template text="""share something silly I've made with Emacs.""" start="00:00:04.730" video="mainVideo-local" id="subtitle"]]
[[!template text="""But as you can see,""" start="00:00:08.855" video="mainVideo-local" id="subtitle"]]
[[!template text="""I'm not starting with Emacs.""" start="00:00:09.756" video="mainVideo-local" id="subtitle"]]
[[!template text="""So my day job as a lecturer""" start="00:00:11.238" video="mainVideo-local" id="subtitle"]]
[[!template text="""in applied computing science""" start="00:00:15.303" video="mainVideo-local" id="subtitle"]]
[[!template text="""means unfortunately I have to work a lot""" start="00:00:16.781" video="mainVideo-local" id="subtitle"]]
[[!template text="""in Java environments, hence IntelliJ.""" start="00:00:19.728" video="mainVideo-local" id="subtitle"]]
[[!template text="""I know LSPs are also there in Emacs,""" start="00:00:23.873" video="mainVideo-local" id="subtitle"]]
[[!template text="""but they're not there yet.""" start="00:00:25.795" video="mainVideo-local" id="subtitle"]]
[[!template text="""And something in IntelliJ and the really awesome""" start="00:00:28.912" video="mainVideo-local" id="subtitle"]]
[[!template text="""tools of the Jetbrains people,""" start="00:00:33.820" video="mainVideo-local" id="subtitle"]]
[[!template text="""That's a functionality that's there I want to""" start="00:00:38.006" video="mainVideo-local" id="subtitle"]]
[[!template text="""show you which is called Local History and that""" start="00:00:40.991" video="mainVideo-local" id="subtitle"]]
[[!template text="""was something I was really missing in Emacs.""" start="00:00:43.535" video="mainVideo-local" id="subtitle"]]
[[!template text="""So I made my own.""" start="00:00:46.540" video="mainVideo-local" id="subtitle"]]
[[!template text="""I'm not really sure if it's the best version, but""" start="00:00:48.547" video="mainVideo-local" id="subtitle"]]
[[!template text="""let's first see.""" start="00:00:50.690" video="mainVideo-local" id="subtitle"]]
<div class="transcript-heading">[[!template new="1" text="""The problem""" start="00:00:51.892" video="mainVideo-local" id="subtitle"]]</div>[[!template new="1" text="""So I've been working all morning on some silly""" start="00:00:51.892" video="mainVideo-local" id="subtitle"]]
[[!template text="""example projects, how to show students how to""" start="00:00:54.756" video="mainVideo-local" id="subtitle"]]
[[!template text="""write unit tests for Spring Boot projects.""" start="00:00:57.240" video="mainVideo-local" id="subtitle"]]
[[!template text="""And what if I made a silly mistake and I want to""" start="00:01:00.044" video="mainVideo-local" id="subtitle"]]
[[!template text="""look back at something I've written and take that""" start="00:01:02.588" video="mainVideo-local" id="subtitle"]]
[[!template text="""back out of the history?""" start="00:01:06.313" video="mainVideo-local" id="subtitle"]]
[[!template text="""The problem is that this thing is not yet on a""" start="00:01:07.915" video="mainVideo-local" id="subtitle"]]
[[!template text="""version control, so I can't do a git log, git""" start="00:01:11.000" video="mainVideo-local" id="subtitle"]]
[[!template text="""history, blah, blah, blah.""" start="00:01:14.044" video="mainVideo-local" id="subtitle"]]
[[!template text="""So I can't take this out of version control.""" start="00:01:15.985" video="mainVideo-local" id="subtitle"]]
[[!template text="""Even if I would have committed something,""" start="00:01:21.314" video="mainVideo-local" id="subtitle"]]
[[!template text="""suppose I did something like this:""" start="00:01:23.218" video="mainVideo-local" id="subtitle"]]
[[!template text="""I added a single line, blah, blah,""" start="00:01:27.085" video="mainVideo-local" id="subtitle"]]
[[!template text="""and then went on about my day, ran a unit test,""" start="00:01:30.952" video="mainVideo-local" id="subtitle"]]
[[!template text="""and then was like, okay, now maybe I don't need""" start="00:01:33.817" video="mainVideo-local" id="subtitle"]]
[[!template text="""that line after all,""" start="00:01:36.101" video="mainVideo-local" id="subtitle"]]
[[!template text="""and then commit.""" start="00:01:37.343" video="mainVideo-local" id="subtitle"]]
[[!template text="""So that line would""" start="00:01:38.485" video="mainVideo-local" id="subtitle"]]
[[!template text="""never reach it inside version control,""" start="00:01:40.690" video="mainVideo-local" id="subtitle"]]
[[!template text="""so I would not be able to get that back.""" start="00:01:43.434" video="mainVideo-local" id="subtitle"]]
[[!template text="""Of course, in my case, because this is a Mac,""" start="00:01:46.038" video="mainVideo-local" id="subtitle"]]
[[!template text="""`Cmd-z` for undoing will just get this thing back,""" start="00:01:48.421" video="mainVideo-local" id="subtitle"]]
[[!template text="""but what if I need persistent undo history,""" start="00:01:53.208" video="mainVideo-local" id="subtitle"]]
[[!template text="""and that will be gone forever.""" start="00:01:56.393" video="mainVideo-local" id="subtitle"]]
<div class="transcript-heading">[[!template new="1" text="""Local history in IntelliJ""" start="00:01:59.618" video="mainVideo-local" id="subtitle"]]</div>[[!template new="1" text="""Unless you do something like this:""" start="00:01:59.618" video="mainVideo-local" id="subtitle"]]
[[!template text="""local history, show history, and then you""" start="00:02:00.859" video="mainVideo-local" id="subtitle"]]
[[!template text="""can see exactly what I did""" start="00:02:03.884" video="mainVideo-local" id="subtitle"]]
[[!template text="""and which changes I made for this particular file.""" start="00:02:08.145" video="mainVideo-local" id="subtitle"]]
[[!template text="""So I added `jsonPath`""" start="00:02:12.652" video="mainVideo-local" id="subtitle"]]
[[!template text="""instead of using the `expectBody` here.""" start="00:02:14.094" video="mainVideo-local" id="subtitle"]]
[[!template text="""The exact content does not matter for this talk at all.""" start="00:02:17.618" video="mainVideo-local" id="subtitle"]]
[[!template text="""But the idea is that I want to preserve that local history.""" start="00:02:20.522" video="mainVideo-local" id="subtitle"]]
[[!template text="""All right.""" start="00:02:27.671" video="mainVideo-local" id="subtitle"]]
[[!template text="""So let me kill IntelliJ for now.""" start="00:02:28.833" video="mainVideo-local" id="subtitle"]]
<div class="transcript-heading">[[!template new="1" text="""Emacs""" start="00:02:33.796" video="mainVideo-local" id="subtitle"]]</div>[[!template new="1" text="""How do I do this in Emacs?""" start="00:02:33.796" video="mainVideo-local" id="subtitle"]]
[[!template text="""So this is a part of the Dutch course I've been""" start="00:02:36.540" video="mainVideo-local" id="subtitle"]]
[[!template text="""writing related to the exercise that you just saw.""" start="00:02:39.463" video="mainVideo-local" id="subtitle"]]
[[!template text="""I wrote a simple function in Emacs Lisp that""" start="00:02:43.128" video="mainVideo-local" id="subtitle"]]
[[!template text="""does exactly that.""" start="00:02:47.034" video="mainVideo-local" id="subtitle"]]
[[!template text="""If I get my file history, `h` for history, then""" start="00:02:48.015" video="mainVideo-local" id="subtitle"]]
[[!template text="""you can see more or less the same thing.""" start="00:02:55.385" video="mainVideo-local" id="subtitle"]]
[[!template text="""So now this is a diff for recent versions.""" start="00:02:58.449" video="mainVideo-local" id="subtitle"]]
[[!template text="""For instance, if I select this one, this is a""" start="00:03:02.821" video="mainVideo-local" id="subtitle"]]
[[!template text="""consult mini-buffer.""" start="00:03:09.538" video="mainVideo-local" id="subtitle"]]
[[!template text="""If I select this one, then you can see I opened""" start="00:03:11.242" video="mainVideo-local" id="subtitle"]]
[[!template text="""up another buffer and split the screen""" start="00:03:14.210" video="mainVideo-local" id="subtitle"]]
[[!template text="""next to it, which is a simple diff using the""" start="00:03:17.080" video="mainVideo-local" id="subtitle"]]
[[!template text="""built-in Emacs version . If I just press `n` for""" start="00:03:21.105" video="mainVideo-local" id="subtitle"]]
[[!template text="""next, next, next, you can see the differences.""" start="00:03:24.750" video="mainVideo-local" id="subtitle"]]
[[!template text="""Now, for each chunk, I can decide to revert""" start="00:03:27.734" video="mainVideo-local" id="subtitle"]]
[[!template text="""something, or at least see whatever the hell it""" start="00:03:30.678" video="mainVideo-local" id="subtitle"]]
[[!template text="""was that I did in the past few hours. If I'm""" start="00:03:34.584" video="mainVideo-local" id="subtitle"]]
[[!template text="""not interested in this at all, then I just press `q`""" start="00:03:38.469" video="mainVideo-local" id="subtitle"]]
[[!template text="""and this thing is completely gone.""" start="00:03:41.433" video="mainVideo-local" id="subtitle"]]
[[!template text="""The same problem here applies as well, or problem,""" start="00:03:44.873" video="mainVideo-local" id="subtitle"]]
[[!template text="""maybe it's a feature. This thing is not yet on""" start="00:03:48.037" video="mainVideo-local" id="subtitle"]]
[[!template text="""version control.""" start="00:03:50.239" video="mainVideo-local" id="subtitle"]]
[[!template text="""So this particular file,""" start="00:03:50.960" video="mainVideo-local" id="subtitle"]]
[[!template text="""I have not yet committed this in Git.""" start="00:03:53.103" video="mainVideo-local" id="subtitle"]]
[[!template text="""So it relies on something else.""" start="00:03:55.545" video="mainVideo-local" id="subtitle"]]
[[!template text="""And that something, of course,""" start="00:03:57.327" video="mainVideo-local" id="subtitle"]]
[[!template text="""is still Emacs's built-in functionality to backup files.""" start="00:03:59.190" video="mainVideo-local" id="subtitle"]]
[[!template text="""The first thing you would probably say is why""" start="00:04:06.678" video="mainVideo-local" id="subtitle"]]
[[!template text="""don't you just use the many""" start="00:04:09.141" video="mainVideo-local" id="subtitle"]]
[[!template text="""built-in undo versions or""" start="00:04:13.055" video="mainVideo-local" id="subtitle"]]
[[!template text="""functionality stuff or visual undo, vundo,""" start="00:04:17.540" video="mainVideo-local" id="subtitle"]]
[[!template text="""which I do use.""" start="00:04:21.605" video="mainVideo-local" id="subtitle"]]
[[!template text="""But if you work a lot in the same file,""" start="00:04:23.287" video="mainVideo-local" id="subtitle"]]
[[!template text="""as you can see,""" start="00:04:26.431" video="mainVideo-local" id="subtitle"]]
[[!template text="""this file is a Markdown file that's 5,400 words long,""" start="00:04:29.315" video="mainVideo-local" id="subtitle"]]
[[!template text="""so it can be a bit cumbersome to work with.""" start="00:04:34.501" video="mainVideo-local" id="subtitle"]]
[[!template text="""So let's see.""" start="00:04:38.866" video="mainVideo-local" id="subtitle"]]
<div class="transcript-heading">[[!template new="1" text="""Vundo""" start="00:04:40.882" video="mainVideo-local" id="subtitle"]]</div>[[!template new="1" text="""What happens if I just call vundo or use my""" start="00:04:40.882" video="mainVideo-local" id="subtitle"]]
[[!template text="""shortcut? That would make things a bit more""" start="00:04:45.287" video="mainVideo-local" id="subtitle"]]
[[!template text="""difficult for you guys to follow.""" start="00:04:47.670" video="mainVideo-local" id="subtitle"]]
[[!template text="""So I'll just press `RET`""" start="00:04:50.013" video="mainVideo-local" id="subtitle"]]
[[!template text="""and start a vundo mini-buffer.""" start="00:04:51.635" video="mainVideo-local" id="subtitle"]]
[[!template text="""Now I can try to make sense of all this.""" start="00:04:55.440" video="mainVideo-local" id="subtitle"]]
[[!template text="""Somehow, maybe I need...""" start="00:04:59.104" video="mainVideo-local" id="subtitle"]]
[[!template text="""let's see the version on the second row.""" start="00:05:01.067" video="mainVideo-local" id="subtitle"]]
[[!template text="""Maybe this one, and then I can see the""" start="00:05:04.928" video="mainVideo-local" id="subtitle"]]
[[!template text="""differences by pressing `d`,""" start="00:05:07.452" video="mainVideo-local" id="subtitle"]]
[[!template text="""and then vundo opens another similar diff""" start="00:05:09.755" video="mainVideo-local" id="subtitle"]]
[[!template text="""as the one that I made myself.""" start="00:05:13.922" video="mainVideo-local" id="subtitle"]]
[[!template text="""You can see I was typing""" start="00:05:16.145" video="mainVideo-local" id="subtitle"]]
[[!template text="""`als je controller een object`,""" start="00:05:17.467" video="mainVideo-local" id="subtitle"]]
[[!template text="""which is Dutch, and I was starting a sentence.""" start="00:05:21.934" video="mainVideo-local" id="subtitle"]]
[[!template text="""That's okay for small edits or for small files,""" start="00:05:27.102" video="mainVideo-local" id="subtitle"]]
[[!template text="""but... Even if you increase the history,""" start="00:05:29.826" video="mainVideo-local" id="subtitle"]]
[[!template text="""those bullets will only get more unwieldy,""" start="00:05:32.603" video="mainVideo-local" id="subtitle"]]
[[!template text="""so it was not really interesting for me to just""" start="00:05:36.308" video="mainVideo-local" id="subtitle"]]
[[!template text="""increase the kept version history""" start="00:05:39.191" video="mainVideo-local" id="subtitle"]]
[[!template text="""and use vundo as an alternative""" start="00:05:42.476" video="mainVideo-local" id="subtitle"]]
[[!template text="""to the IntelliJ local history thing.""" start="00:05:44.618" video="mainVideo-local" id="subtitle"]]
[[!template text="""There are of course multiple existing""" start="00:05:49.685" video="mainVideo-local" id="subtitle"]]
[[!template text="""packages that do more or less the same.""" start="00:05:51.888" video="mainVideo-local" id="subtitle"]]
[[!template text="""The only thing that I did was write a single""" start="00:05:54.030" video="mainVideo-local" id="subtitle"]]
[[!template text="""function, so it's not really a package at all.""" start="00:05:55.853" video="mainVideo-local" id="subtitle"]]
[[!template text="""I'll show you in a bit what it's like.""" start="00:05:58.596" video="mainVideo-local" id="subtitle"]]
<div class="transcript-heading">[[!template new="1" text="""undo-fu-session""" start="00:06:01.797" video="mainVideo-local" id="subtitle"]]</div>[[!template new="1" text="""You have stuff like undo sessions that are""" start="00:06:01.797" video="mainVideo-local" id="subtitle"]]
[[!template text="""persistent, like this thing.""" start="00:06:06.366" video="mainVideo-local" id="subtitle"]]
[[!template text="""This is an interesting plugin which saves and""" start="00:06:09.431" video="mainVideo-local" id="subtitle"]]
[[!template text="""recovers undo steps between Emacs sessions.""" start="00:06:11.836" video="mainVideo-local" id="subtitle"]]
[[!template text="""I initially thought it was interesting enough to""" start="00:06:14.822" video="mainVideo-local" id="subtitle"]]
[[!template text="""take a look at, especially if combined with vundo.""" start="00:06:17.847" video="mainVideo-local" id="subtitle"]]
[[!template text="""The problem only gets worse""" start="00:06:24.477" video="mainVideo-local" id="subtitle"]]
[[!template text="""because the vundo bullets showing different edits""" start="00:06:26.083" video="mainVideo-local" id="subtitle"]]
[[!template text="""will only increase in size.""" start="00:06:31.442" video="mainVideo-local" id="subtitle"]]
[[!template text="""And combined with undo-fu-session,""" start="00:06:34.568" video="mainVideo-local" id="subtitle"]]
[[!template text="""I just couldn't really find anything at all anymore""" start="00:06:37.273" video="mainVideo-local" id="subtitle"]]
[[!template text="""compared to...""" start="00:06:41.741" video="mainVideo-local" id="subtitle"]]
<div class="transcript-heading">[[!template new="1" text="""Timestamps""" start="00:06:43.464" video="mainVideo-local" id="subtitle"]]</div>[[!template new="1" text="""The thing in the local history""" start="00:06:43.464" video="mainVideo-local" id="subtitle"]]
[[!template text="""in IntelliJ is there are timestamps.""" start="00:06:44.567" video="mainVideo-local" id="subtitle"]]
[[!template text="""Normally I know, for example, around 10""" start="00:06:47.272" video="mainVideo-local" id="subtitle"]]
[[!template text="""o'clock this morning, I made an interesting edit""" start="00:06:51.700" video="mainVideo-local" id="subtitle"]]
[[!template text="""that was just before lunch break.""" start="00:06:54.545" video="mainVideo-local" id="subtitle"]]
[[!template text="""Or just before I went to the bathroom, after""" start="00:06:56.472" video="mainVideo-local" id="subtitle"]]
[[!template text="""that, I don't know any more what I did.""" start="00:06:58.314" video="mainVideo-local" id="subtitle"]]
[[!template text="""So I want to focus on that specific part.""" start="00:07:00.617" video="mainVideo-local" id="subtitle"]]
[[!template text="""So I timestamped my stuff instead.""" start="00:07:03.140" video="mainVideo-local" id="subtitle"]]
<div class="transcript-heading">[[!template new="1" text="""Configuration""" start="00:07:07.626" video="mainVideo-local" id="subtitle"]]</div>[[!template new="1" text="""Digging a bit deeper into the Emacs""" start="00:07:07.626" video="mainVideo-local" id="subtitle"]]
[[!template text="""configuration, the things that I did to alter is""" start="00:07:11.030" video="mainVideo-local" id="subtitle"]]
[[!template text="""the first thing, of course, some basic settings,""" start="00:07:14.695" video="mainVideo-local" id="subtitle"]]
[[!template text="""which is the backup and the autosave directory.""" start="00:07:18.123" video="mainVideo-local" id="subtitle"]]
[[!template text="""These two I will be needing.""" start="00:07:21.606" video="mainVideo-local" id="subtitle"]]
[[!template text="""As you can see, like I wrote here, I like backups.""" start="00:07:24.008" video="mainVideo-local" id="subtitle"]]
[[!template text="""So I enabled as much stuff as possible.""" start="00:07:28.092" video="mainVideo-local" id="subtitle"]]
[[!template text="""Version control, of course, that's the one that""" start="00:07:31.395" video="mainVideo-local" id="subtitle"]]
[[!template text="""you will be needing.""" start="00:07:33.897" video="mainVideo-local" id="subtitle"]]
[[!template text="""But also `vc-make-backup-files`.""" start="00:07:35.319" video="mainVideo-local" id="subtitle"]]
[[!template text="""What does this thing do?""" start="00:07:37.821" video="mainVideo-local" id="subtitle"]]
[[!template text="""If we take a look at the symbol beneath it.""" start="00:07:40.924" video="mainVideo-local" id="subtitle"]]
[[!template text="""You can see: if non-nil, backups of registered""" start="00:07:47.131" video="mainVideo-local" id="subtitle"]]
[[!template text="""files are made with other files.""" start="00:07:49.815" video="mainVideo-local" id="subtitle"]]
[[!template text="""If nil, default, files covered by version control""" start="00:07:52.058" video="mainVideo-local" id="subtitle"]]
[[!template text="""don't get backups.""" start="00:07:55.082" video="mainVideo-local" id="subtitle"]]
[[!template text="""So if Emacs thinks this file is already covered""" start="00:07:55.803" video="mainVideo-local" id="subtitle"]]
[[!template text="""by version control, most cases that would be git,""" start="00:07:58.306" video="mainVideo-local" id="subtitle"]]
[[!template text="""it will not be locally backed up, and that was not""" start="00:08:01.791" video="mainVideo-local" id="subtitle"]]
[[!template text="""something I was content with.""" start="00:08:04.234" video="mainVideo-local" id="subtitle"]]
[[!template text="""Those few lines that I will never commit anyway,""" start="00:08:07.899" video="mainVideo-local" id="subtitle"]]
[[!template text="""they're not backed up,""" start="00:08:10.683" video="mainVideo-local" id="subtitle"]]
[[!template text="""and sometimes you need those lines.""" start="00:08:12.410" video="mainVideo-local" id="subtitle"]]
[[!template text="""Most of the times you don't, but sometimes you do.""" start="00:08:15.093" video="mainVideo-local" id="subtitle"]]
[[!template text="""So I also enabled that one.""" start="00:08:18.096" video="mainVideo-local" id="subtitle"]]
[[!template text="""If you enable all that stuff, of course, too""" start="00:08:21.180" video="mainVideo-local" id="subtitle"]]
[[!template text="""much backups files will be generated.""" start="00:08:24.784" video="mainVideo-local" id="subtitle"]]
[[!template text="""So you will need to trim them a little bit.""" start="00:08:26.446" video="mainVideo-local" id="subtitle"]]
[[!template text="""You can either do that yourself or use a""" start="00:08:28.849" video="mainVideo-local" id="subtitle"]]
[[!template text="""callback function or a time function or whatever,""" start="00:08:30.911" video="mainVideo-local" id="subtitle"]]
[[!template text="""or just configure these specific settings.""" start="00:08:33.294" video="mainVideo-local" id="subtitle"]]
[[!template text="""Then let's see.""" start="00:08:39.360" video="mainVideo-local" id="subtitle"]]
[[!template text="""Backup.""" start="00:08:42.177" video="mainVideo-local" id="subtitle"]]
[[!template text="""What was it?""" start="00:08:46.122" video="mainVideo-local" id="subtitle"]]
[[!template text="""Let's go to the last few pages here.""" start="00:08:47.884" video="mainVideo-local" id="subtitle"]]
[[!template text="""The mini-buffer.""" start="00:08:52.810" video="mainVideo-local" id="subtitle"]]
[[!template text="""Here it is.""" start="00:08:56.735" video="mainVideo-local" id="subtitle"]]
[[!template text="""`consult-local-history`.""" start="00:08:58.077" video="mainVideo-local" id="subtitle"]]
[[!template text="""This is the thing that I just called in my other file.""" start="00:08:59.799" video="mainVideo-local" id="subtitle"]]
[[!template text="""What it actually does is really simple.""" start="00:09:04.365" video="mainVideo-local" id="subtitle"]]
[[!template text="""It scans the backup directory.""" start="00:09:07.609" video="mainVideo-local" id="subtitle"]]
[[!template text="""If I evaluate...""" start="00:09:10.072" video="mainVideo-local" id="subtitle"]]
[[!template text="""If I were to evaluate that, let's see, we'll call""" start="00:09:11.810" video="mainVideo-local" id="subtitle"]]
[[!template text="""the backup history.""" start="00:09:20.239" video="mainVideo-local" id="subtitle"]]
[[!template text="""This thing is just a configuration of the one in""" start="00:09:21.921" video="mainVideo-local" id="subtitle"]]
[[!template text="""the Emacs .el file that I just showed.""" start="00:09:24.443" video="mainVideo-local" id="subtitle"]]
[[!template text="""And then it checks for this buffer file name.""" start="00:09:27.106" video="mainVideo-local" id="subtitle"]]
[[!template text="""Are there any backups?""" start="00:09:30.670" video="mainVideo-local" id="subtitle"]]
[[!template text="""If yes, we just format them using a time string""" start="00:09:32.091" video="mainVideo-local" id="subtitle"]]
[[!template text="""and then show them inside the mini-buffer.""" start="00:09:35.775" video="mainVideo-local" id="subtitle"]]
[[!template text="""So if I go back to my tdd.md file and then go to""" start="00:09:38.455" video="mainVideo-local" id="subtitle"]]
[[!template text="""the file history, this diff history,""" start="00:09:44.763" video="mainVideo-local" id="subtitle"]]
[[!template text="""this is just the formatted one""" start="00:09:48.027" video="mainVideo-local" id="subtitle"]]
[[!template text="""and these are all the files""" start="00:09:49.749" video="mainVideo-local" id="subtitle"]]
[[!template text="""found in my specific backup directory""" start="00:09:51.231" video="mainVideo-local" id="subtitle"]]
[[!template text="""regarding tdd.md.""" start="00:09:54.235" video="mainVideo-local" id="subtitle"]]
[[!template text="""So once we have all those sorted files,""" start="00:10:01.123" video="mainVideo-local" id="subtitle"]]
[[!template text="""we format the candidates and then we just display them.""" start="00:10:04.487" video="mainVideo-local" id="subtitle"]]
[[!template text="""Then you use `consult--read` to see exactly""" start="00:10:08.763" video="mainVideo-local" id="subtitle"]]
[[!template text="""which candidate is the one that's being picked.""" start="00:10:15.950" video="mainVideo-local" id="subtitle"]]
[[!template text="""The one that's being picked, we use `diff-buf`""" start="00:10:19.513" video="mainVideo-local" id="subtitle"]]
[[!template text="""or `diff-no-select` with the selected backup,""" start="00:10:22.836" video="mainVideo-local" id="subtitle"]]
[[!template text="""the file name, and a few other parameters I found useful.""" start="00:10:26.159" video="mainVideo-local" id="subtitle"]]
[[!template text="""Then it gets opened in a new window.""" start="00:10:30.524" video="mainVideo-local" id="subtitle"]]
[[!template text="""So it's just a built-in diff.""" start="00:10:32.445" video="mainVideo-local" id="subtitle"]]
[[!template text="""Then you can decide for yourself what to do with it.""" start="00:10:36.089" video="mainVideo-local" id="subtitle"]]
<div class="transcript-heading">[[!template new="1" text="""Wrapping up""" start="00:10:40.758" video="mainVideo-local" id="subtitle"]]</div>[[!template new="1" text="""If you somehow think this is all really stupid""" start="00:10:40.758" video="mainVideo-local" id="subtitle"]]
[[!template text="""or the way this is written is silly""" start="00:10:43.101" video="mainVideo-local" id="subtitle"]]
[[!template text="""or completely wrong, please do let me know""" start="00:10:46.186" video="mainVideo-local" id="subtitle"]]
[[!template text="""because I've been using Emacs for only less than a year,""" start="00:10:48.189" video="mainVideo-local" id="subtitle"]]
[[!template text="""so I'm actually a complete noob when it comes to this.""" start="00:10:50.953" video="mainVideo-local" id="subtitle"]]
[[!template text="""So I'm sure there will be better or more robust alternatives.""" start="00:10:54.839" video="mainVideo-local" id="subtitle"]]
[[!template text="""I'd be really interested in hearing from that as well.""" start="00:10:59.586" video="mainVideo-local" id="subtitle"]]
[[!template text="""So yeah, thank you very much and see you soon.""" start="00:11:04.974" video="mainVideo-local" id="subtitle"]]
</div>
Captioner: sachac
Questions or comments? Please e-mail [wouter@brainbaking.com](mailto:wouter@brainbaking.com?subject=Comment%20for%20EmacsConf%202023%20local%3A%20Local%20file%20history%20possibilities%20in%20Emacs)
<!-- End of emacsconf-publish-after-page -->
|