Log In  


Are there config files for the editors?
So if I wanted to say, change the tab size or key-bindings in the code-editor.

if not, does anyone know where I could start poking around?

update: i did find /system/apps/code.p64 which looks promising. any other info is welcome



1

I was interested in this too, so I looked into it.
However, I couldn't find any processing other than inserting tabs into existing text.
However, there might be some way to replace \009 with a space character, etc.
I hope this is helpful.

/system/lib/gui_ed.lua

			-- tab
			if (keyp("tab")) then

				if key_pressed_callback(self, "tab") then
					-- skip
				elseif (is_something_selected()) then
					indent_selection()
				else
					backup_line_edit()
					local k = "\009"
					delete_selected()
					text[cur_y] = insert_string(text[cur_y], cur_x, k)
					cur_x = cur_x + 1
					set_cur_xp()
					show_cursor()
				end
			end

hey thanks @sugarflower.
glad i'm not the only one. Its good to have more room in picotron. But its still not enough space to waste! 3 spaces for a tab? No key binding for beginning of line?
I'll try to play with the file you gave me. If anything comes of it I'll let you know.

update: i did what you said and replaced "/009" with " " and it does indeed tab one space. but only in session. It wont save to disk, and wont carry over to next session. Neither will it draw the old tabs as single space. Maybe possible to write a startup script...



[Please log in to post a comment]