about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--commands.lua3
-rw-r--r--log_browser.lua10
2 files changed, 1 insertions, 12 deletions
diff --git a/commands.lua b/commands.lua
index 512992d..4e891ef 100644
--- a/commands.lua
+++ b/commands.lua
@@ -129,8 +129,7 @@ end
 
 function navigate_to_file(s)
   move_candidate_to_front(s)
-  local candidate = guess_source(s..'.lua')
-  source.switch_to_file(candidate)
+  source.switch_to_file(s..'.lua')
   reset_file_navigator()
 end
 
diff --git a/log_browser.lua b/log_browser.lua
index 078db06..6432d85 100644
--- a/log_browser.lua
+++ b/log_browser.lua
@@ -35,7 +35,6 @@ function log_browser.parse(State)
       if rest then
         line.data = rest
       end
-      line.filename = guess_source(line.filename)
       line.line_number = tonumber(line.line_number)
       if line.data:sub(1,1) == '{' then
         local data = json.decode(line.data)
@@ -75,15 +74,6 @@ function table.shallowcopy(x)
   return {unpack(x)}
 end
 
-function guess_source(filename)
-  local possible_source = filename:gsub('%.lua$', '%.splua')
-  if file_exists(possible_source) then
-    return possible_source
-  else
-    return filename
-  end
-end
-
 function log_browser.draw(State, hide_cursor)
   assert(#State.lines == #State.line_cache)
   local mouse_line_index = log_browser.line_index(State, App.mouse_x(), App.mouse_y())
on' href='/akkartik/mu/blame/cpp/019address?h=main&id=7fb56277f54b9e2625357a433b18f60e4493f34a'>^
986eebff ^
ac0e9db5 ^
5b567348 ^
986eebff ^
3c435756 ^

88be3dbc ^
d672cdfc ^
5497090a ^

d672cdfc ^
57699011 ^
d672cdfc ^
ac0e9db5 ^
5b567348 ^
986eebff ^


ab6ed192 ^
b9011f34 ^
986eebff ^
7da71d03 ^
986eebff ^




986eebff ^
a2be26c8 ^
363be37f ^
3076bab4 ^
e4630643 ^



3ba63579 ^
e4630643 ^



827898fc ^
35064671 ^
986eebff ^




ac0e9db5 ^

b9011f34 ^
05d17773 ^

986eebff ^

b9011f34 ^
05d17773 ^
986eebff ^


5e938dc1 ^
7284d503 ^
88be3dbc ^
5e938dc1 ^
5497090a ^



5e938dc1 ^
57699011 ^
5e938dc1 ^
88be3dbc ^
b9011f34 ^
5497090a ^



b9011f34 ^
57699011 ^
b9011f34 ^
f1a3be1c ^

5e938dc1 ^
88be3dbc ^
db5c9550 ^
5e938dc1 ^
5497090a ^



5e938dc1 ^
d7494165 ^
5e938dc1 ^
f1a3be1c ^

c51043ab ^
a953a9fc ^
1fad5eef ^















c51043ab ^
1fad5eef ^
c51043ab ^
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