diff --git a/TODO b/TODO index b6362b1..995d895 100644 --- a/TODO +++ b/TODO @@ -10,7 +10,8 @@ [ ] font: use system fonts [ ] font: implement hashmap of already rendered glyphs and only re-draw the ones that are not in that map -[ ] resize text on the fly +[ ] font: resize text on the fly +[ ] ui: change ui scale on the fly [x] add menu to exec arbitrary command -> added console [ ] that command can be what is selected [ ] console: accept input @@ -51,3 +52,4 @@ search feature [x] implement visual "ruler" at column 80 [ ] show hidden files config and binding +[ ] syntax: highlight FIXME TODO BUG FIX and IMPROVEMENT keywords diff --git a/data/core/docview.lua b/data/core/docview.lua index 074d3a9..849595b 100644 --- a/data/core/docview.lua +++ b/data/core/docview.lua @@ -325,7 +325,8 @@ function DocView:draw_line_body(idx, x, y) end -- draw ruler - if config.line_limit > 0 then + -- FIXME: matching for name of the view may be expensive + if config.line_limit > 0 and (core.active_view:get_name() ~= "---") then local sw = self:get_font():get_width(" ") local w = math.ceil(1 * SCALE) local lh = self:get_line_height() diff --git a/data/core/view.lua b/data/core/view.lua index ae978a9..ebd05a0 100644 --- a/data/core/view.lua +++ b/data/core/view.lua @@ -38,6 +38,7 @@ function View:try_close(do_close) end +-- FIXME: what if a file is called "---"? this should be changed function View:get_name() return "---" end