mirror of https://github.com/koreader/koreader
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
6e35e683dd
This plugin mostly sets up a "Text editor>" submenu, that allows browsing files, creating a new file, and managing a history of previously opened file for easier re-opening. It restore previous scroll and cursor positions on re-opening. Additional "Check lua" syntax button is added when editing a .lua file, and prevent saving if errors. The text editing is mainly provided by the enhanced InputDialog. InputDialog: added a few more options, the main one being 'save_callback', which will add a Save and Close buttons and manage saving/discarding/exiting. If "fullscreen" and "add_nav_bar", will add a show/hide keyboard button to it. Moved the preset buttons setup code in their own InputDialog methods for clarity of the main init code. Buttons are now enabled/disabled depending on context for feedback (eg: Save is disabled as long as text has not been modified). Added util.checkLuaSyntax(lua_string), might be useful elsewhere. |
6 years ago | |
---|---|---|
.. | ||
apps | 6 years ago | |
device | 6 years ago | |
document | 6 years ago | |
ui | 6 years ago | |
cache.lua | 6 years ago | |
cacheitem.lua | 10 years ago | |
configurable.lua | 8 years ago | |
dbg.lua | 6 years ago | |
depgraph.lua | 7 years ago | |
device.lua | 6 years ago | |
docsettings.lua | 7 years ago | |
dump.lua | 7 years ago | |
gettext.lua | 6 years ago | |
httpclient.lua | 8 years ago | |
logger.lua | 8 years ago | |
luadata.lua | 7 years ago | |
luasettings.lua | 6 years ago | |
luxl.lua | 10 years ago | |
optmath.lua | 8 years ago | |
pluginloader.lua | 6 years ago | |
pluginshare.lua | 7 years ago | |
random.lua | 7 years ago | |
readhistory.lua | 6 years ago | |
up_reg.list | 10 years ago | |
util.lua | 6 years ago | |
version.lua | 6 years ago |