Re: [gedit-list] Usability request (and Lua syntax highlighting)



It scrolls by half pages for me, but I'd rather have it scroll by three lines or so. It would be nice to see this made into something configurable.

BTW, I wrote a Lua [1] syntax highlighting file for gtksourceview, and it's working nice with gEdit. I noticed this email is going to Paolo as well, one of that project's managers. It's not perfect, though. Continueing lines is still based on the Python highlighting and I'm not sure how Lua is really handling that. Keywords and comments should be fine.

Bye for now,
Bjorn

[1] http://www.lua.org/


Jon Lapham wrote:
Hey folks, I'm curious if other have noticed this same usability issue. The scroll wheel on my mouse moves text in a gedit window by an entire page for each "wheel position" (know what I mean?).

I find this (and maybe only me?) difficult to use when scrolling up and down a document, because since entire page changes with each wheel position, there is no visual clue as to where you were before.

In "nedit" (my old text editor that I am weaning myself off of) the scroll wheel moved 10 lines per position. So, you could "see" sections move up and down and it seemed to me easier to follow.

So, my question is, would there be any support for changing the scroll wheel behavior in gedit to move by "half page" increments instead of "whole page"?

-Jon
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE language SYSTEM "language.dtd">
<language _name="Lua" version="1.0" _section="Scripts" mimetypes="text/x-lua">

	<escape-char>\</escape-char>

	<string _name = "Multiline String" style = "String" end-at-line-end = "FALSE">
		<start-regex>[uUrR]?&quot;&quot;&quot;</start-regex>
		<end-regex>&quot;&quot;&quot;</end-regex>
	</string>

	<string _name = "Multiline String 2" style = "String" end-at-line-end = "FALSE">
		<start-regex>[uUrR]?&apos;&apos;&apos;</start-regex>
		<end-regex>&apos;&apos;&apos;</end-regex>
	</string>

	<string _name = "String" style = "String" end-at-line-end = "TRUE">
		<start-regex>[uUrR]?&quot;</start-regex>
		<end-regex>&quot;</end-regex>
	</string>

	<string _name = "String 2" style = "String" end-at-line-end = "TRUE">
		<start-regex>[uUrR]?&apos;</start-regex>
		<end-regex>&apos;</end-regex>
	</string>

	<block-comment _name = "Block Comment" style = "Comment">
		<start-regex>--\[\[</start-regex>
		<end-regex>]]</end-regex>
	</block-comment>

	<line-comment _name = "Line Comment" style= "Comment">
		<start-regex>#</start-regex>
	</line-comment>

	<line-comment _name = "Line Comment 2" style= "Comment">
		<start-regex>--</start-regex>
	</line-comment>

	<keyword-list _name = "Keywords" style = "Keyword" case-sensitive="TRUE">
		<keyword>and</keyword>
		<keyword>break</keyword>
		<keyword>do</keyword>
		<keyword>else</keyword>
		<keyword>elseif</keyword>
		<keyword>end</keyword>
		<keyword>false</keyword>
		<keyword>for</keyword>
		<keyword>function</keyword>
		<keyword>if</keyword>
		<keyword>in</keyword>
		<keyword>local</keyword>
		<keyword>nil</keyword>
		<keyword>not</keyword>
		<keyword>or</keyword>
		<keyword>repeat</keyword>
		<keyword>return</keyword>
		<keyword>then</keyword>
		<keyword>true</keyword>
		<keyword>until</keyword>
		<keyword>while</keyword>
	</keyword-list>

	<keyword-list _name = "Functions" style = "Other" case-sensitive="TRUE">
		<keyword>assert</keyword>
		<keyword>collectgarbage</keyword>
		<keyword>dofile</keyword>
		<keyword>error</keyword>
		<keyword>_G</keyword>
		<keyword>getfenv</keyword>
		<keyword>getmetatable</keyword>
		<keyword>gcinfo</keyword>
		<keyword>ipairs</keyword>
		<keyword>loadfile</keyword>
		<keyword>loadlib</keyword>
		<keyword>loadstring</keyword>
		<keyword>next</keyword>
		<keyword>pairs</keyword>
		<keyword>pcall</keyword>
		<keyword>print</keyword>
		<keyword>rawequal</keyword>
		<keyword>rawget</keyword>
		<keyword>rawset</keyword>
		<keyword>require</keyword>
		<keyword>setfenv</keyword>
		<keyword>setmetatable</keyword>
		<keyword>tonumber</keyword>
		<keyword>tostring</keyword>
		<keyword>type</keyword>
		<keyword>unpack</keyword>
		<keyword>_VERSION</keyword>
		<keyword>xpcall</keyword>
	</keyword-list>

</language>


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]