[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-bugs-dist
Subject:    [kate] [Bug 390870] Display line numbers by default, or for files detected as source files
From:       Michel Ludwig <bugzilla_noreply () kde ! org>
Date:       2018-04-01 5:08:19
Message-ID: bug-390870-17878-gkgswgzsar () http ! bugs ! kde ! org/
[Download RAW message or body]

https://bugs.kde.org/show_bug.cgi?id=390870

--- Comment #8 from Michel Ludwig <michel.ludwig@kdemail.net> ---
(In reply to Nate Graham from comment #7)
> Kile is a pretty advanced piece of software for experts (everyone I know who
> uses LaTeX is a pretty advanced computer user who's used to text editors
> having line numbers), so I didn't think it would be a problem.

Just to clarify, Kile's user base includes computer scientists, mathematicians,
physicists, and so on. Not every computer scientist is an advanced computer
user, and the same is probably true for the latter two. And when I say "not
advanced", I really mean it ;)

Of course, everyone could understand the concept of line numbers, but my point
is that line numbers are not essential for the editing workflow in Kile. In
fact, Kile tries to do everything to hide line numbers from the users, and it
will do even more so in the future. So, turning them on by default would
undermine those efforts. (To provide a little empirical evidence for that
claim, there hasn't been a feature wish requesting that line numbers are turned
on by default in Kile so far)

The screen on my (admittedly really old) laptop has a resolution of 1600x900
and line numbers consume too much space in Kile (especially in combination with
code folding arrows), while not bringing an immediate benefit.

> This just changes a default; it can be switched off manually or
> programmatically, by editing ~/.config/katepartrc.

Now, editing configuration files by hand is really for advanced advanced users
only ;)

I'm not sure whether there is a method in KTextEditor::View at the moment for
toggling the display of line numbers. Moreover, a "constructor" argument for
setting the default value of the show-line-numbers internal variable would also
be needed. Otherwise, I will have to add such code to Kile, which checks
whether the user changed that setting from the default value before turning
line numbers off at the construction time of the KTextEditor::View. The logic
behind the show-line-numbers setting would then be moved into Kile essentially.

-- 
You are receiving this mail because:
You are watching all bug changes.=
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic