GNOME Bugzilla – Bug 144141
gedit should include a Line Numbers toggle in View menu.
Last modified: 2020-11-24 09:57:52 UTC
gedit should include a Line Numbers toggle in View menu. This would make it much easier to toggle this state (which would be useful) rather than having to enter the preferences all the time. I'm pretty comfortable that this is a useful addition to the UI and not feature bloat. 8-]
I agree with you but I have a doubt. Should the state change be reflected by the active view, by all the views in the active window or by the views in all the windows?
For all the views would be a good start given that that's the affect changing the preferences would have. I'm not sure that being able to have line numbers on some open documents and not on others is really that valuable, especially if turning on and off line numbers is so accessible (ie, in the menus, or even a button on the toolbar (oh, that would be nice))
An alternative could be leaving the toggle also in the prefernces and have the preference toggle affect the default while the menu toggle only change the current file view without storing in gconf...
Created attachment 30601 [details] [review] Patch adds a line number menu item Created a patch that adds a menu item under the View Menu. also added the accel key Shift+Ctrl+N for the option. The menu option toggles line numbers visibility across all open documents.
Comment on attachment 30601 [details] [review] Patch adds a line number menu item I don't think the accellerator is needed. IMO, as suggested by pbor too, the menu toggle should only affect the current file view without changing the global preference in gconf. I'm not sure, but I think would be cool if the preference for the file is stored using gedit-metadata.
*** Bug 365852 has been marked as a duplicate of this bug. ***
I agree, this would be a very nice to have feature. I also want to add, that it would be nice to be able to set a default setting by file type. For example, it should be possibel to set togglie line numbers to on for C++/C code files and off for normal text (*.txt) files.
Mass-closing of all gedit bugzilla tickets. Special "code" to find again all those gedit bugzilla tickets that were open before the mass-closing: 2bfe1b0590a78457e1f1a6a90fb975f5878cb60064ccfe1d7db76ca0da52f0f3 By searching the above sha256sum in bugzilla, the gedit contributors can find again the tickets. We may be interested to do so when we work on a specific area of the code, to at least know the known problems and possible enhancements. We do this mass-closing because bugzilla.gnome.org is being replaced by gitlab.gnome.org.