diff options
Diffstat (limited to 'doc')
-rw-r--r-- | doc/06_AdeptEditing.md | 2 | ||||
-rw-r--r-- | doc/09_Themes.md | 12 | ||||
-rw-r--r-- | doc/10_Advanced.md | 10 | ||||
-rw-r--r-- | doc/14_Appendix.md | 45 |
4 files changed, 35 insertions, 34 deletions
diff --git a/doc/06_AdeptEditing.md b/doc/06_AdeptEditing.md index 68b0dbd4..7c885cce 100644 --- a/doc/06_AdeptEditing.md +++ b/doc/06_AdeptEditing.md @@ -196,7 +196,7 @@ tool such as [ack][].  -[find API]: api/gui.find.html#FILTER +[find API]: api/ui.find.html#FILTER [ack]: http://betterthangrep.com/ ### Incremental Find diff --git a/doc/09_Themes.md b/doc/09_Themes.md index eda6e47a..0fa9f5d3 100644 --- a/doc/09_Themes.md +++ b/doc/09_Themes.md @@ -28,15 +28,15 @@ display these standard colors. ## Setting Themes Override the default theme in your [*~/.textadept/init.lua*][] using the -[`gui.set_theme()`][] function. For example: +[`ui.set_theme()`][] function. For example: - gui.set_theme('dark') + ui.set_theme('dark') Either restart Textadept for changes to take effect or type [`reset()`][] in the [command entry][]. [*~/.textadept/init.lua*]: 08_Preferences.html#User.Init -[`gui.set_theme()`]: api/gui.html#set_theme +[`ui.set_theme()`]: api/ui.html#set_theme [`reset()`]: api/_G.html#reset [command entry]: 10_Advanced.html#Command.Entry @@ -54,12 +54,12 @@ scratch or tweak an existing one. Creating a new one is straightforward -- all you need to do is define a set of colors and a set of styles. Just follow the example of existing themes. If instead you want to use an existing theme like "light" but only change the font face and font size, you have two options: call -[`gui.set_theme()`][] from your *~/.textadept/init.lua* with additional +[`ui.set_theme()`][] from your *~/.textadept/init.lua* with additional parameters, or create an abbreviated *~/.textadept/themes/light.lua* using Lua's `dofile()` function. For example: -- File *~/.textadept/init.lua* - gui.set_theme('light', 'font', 'Monospace', 'fontsize', 12) + ui.set_theme('light', 'font', 'Monospace', 'fontsize', 12) -- File *~/.textadept/themes/light.lua* dofile(_HOME..'/themes/light.lua') @@ -70,7 +70,7 @@ Either one loads Textadept's "light" theme, but applies your font preferences. The same techniques work for tweaking individual theme colors and/or styles, but managing more changes is probably easier with the latter. -[`gui.set_theme()`]: api/gui.html#set_theme +[`ui.set_theme()`]: api/ui.html#set_theme ### Language diff --git a/doc/10_Advanced.md b/doc/10_Advanced.md index 9d921164..415be4e2 100644 --- a/doc/10_Advanced.md +++ b/doc/10_Advanced.md @@ -7,9 +7,9 @@ on Mac OSX | `M-C` in curses) to display the entry. It is useful for debugging, inspecting, and entering `buffer` or `view` commands. If you try to cause instability in Textadept's Lua state, you will probably succeed so be careful. The [Lua API][] lists available commands. The command entry provides abbreviated -commands for [`buffer`][], [`view`][] and [`gui`][]: you may reduce the +commands for [`buffer`][], [`view`][] and [`ui`][]: you may reduce the `buffer:append_text('foo')` command to `append_text('foo')`. Therefore, use -`_G.print()` for Lua's `print()` since `print()` expands to [`gui.print()`][]. +`_G.print()` for Lua's `print()` since `print()` expands to [`ui.print()`][]. These commands are runnable on startup using the `-e` and `--execute` command line switches. @@ -18,8 +18,8 @@ line switches. [Lua API]: api/index.html [`buffer`]: api/buffer.html [`view`]: api/view.html -[`gui`]: api/gui.html -[`gui.print()`]: api/gui.html#print +[`ui`]: api/ui.html +[`ui.print()`]: api/ui.html#print ### Tab Completion @@ -36,7 +36,7 @@ Executing Lua commands is just one of the many tools the command entry functions as. For example, *modules/textadept/find.lua* and *modules/textadept/keys.lua* extend it to implement [incremental search][]. -[incremental search]: api/gui.find.html#find_incremental +[incremental search]: api/ui.find.html#find_incremental ## Command Selection diff --git a/doc/14_Appendix.md b/doc/14_Appendix.md index 47135409..23c7312a 100644 --- a/doc/14_Appendix.md +++ b/doc/14_Appendix.md @@ -177,7 +177,7 @@ MARK\_ERROR\_BACK |Renamed |[ERROR\_COLOR][] open |Changed |\_G.[io.snapopen()][]<sup>‡</sup> **events** | | handlers |Removed |N/A -**gui** | | +**gui** |Renamed |[ui][] N/A |New |[maximized][] find.goto\_file\_in\_list() |Renamed |find.[goto\_file\_found()][] select\_theme |Removed |N/A @@ -200,8 +200,9 @@ try\_encodings |Renamed |[encodings][] [select\_enclosed()]: api/_M.textadept.editing.html#select_enclosed [ERROR\_COLOR]: api/_M.textadept.run.html#ERROR_COLOR [io.snapopen()]: api/io.html#snapopen -[maximized]: api/gui.html#maximized -[goto\_file\_found()]: api/gui.find.html#goto_file_found +[ui]: api/ui.html +[maximized]: api/ui.html#maximized +[goto\_file\_found()]: api/ui.find.html#goto_file_found [encodings]: api/io.html#encodings #### Theme Changes @@ -287,7 +288,7 @@ that specified your preferred Textadept 6 theme. Use *~/.textadept/init.lua* to terminal themes: -- File *~/.textadept/init.lua* - gui.set_theme(not CURSES and 'custom' or 'custom_term') + ui.set_theme(not CURSES and 'custom' or 'custom_term') You may still use absolute paths for themes instead of names. @@ -343,7 +344,7 @@ execute() |Replaced|[run()][] and [compile()][] prompt\_load() |Replaced|[load()][] prompt\_save() |Replaced|[save()][] -[menu()]: api/gui.html#menu +[menu()]: api/ui.html#menu [complete()]: api/_M.textadept.adeptsense.html#complete [show\_apidoc()]: api/_M.textadept.adeptsense.html#show_apidoc [toggle()]: api/_M.textadept.bookmarks.html#toggle @@ -577,32 +578,32 @@ views |Renamed|\_G.[\_VIEWS][] [API]: api [\_SCINTILLA]: api/_SCINTILLA.html [events]: api/events.html -[gui]: api/gui.html +[gui]: api/ui.html [_m.textadept.snippets]: api/_M.textadept.snippets.html -[gui.\_print()]: api/gui.html#_print +[gui.\_print()]: api/ui.html#_print [\_SCINTILLA.functions]: api/_SCINTILLA.html#functions [\_SCINTILLA.properties]: api/_SCINTILLA.html#properties [\_BUFFERS]: api/_G.html#_BUFFERS -[gui.clipboard\_text]: api/gui.html#clipboard_text -[gui.command\_entry]: api/gui.command_entry.html +[gui.clipboard\_text]: api/ui.html#clipboard_text +[gui.command\_entry]: api/ui.command_entry.html [\_SCINTILLA.constants]: api/_SCINTILLA.html#constants -[gui.context\_menu]: api/gui.html#context_menu -[gui.dialog()]: api/gui.html#dialog -[gui.docstatusbar\_text]: api/gui.html#docstatusbar_text +[gui.context\_menu]: api/ui.html#context_menu +[gui.dialog()]: api/ui.html#dialog +[gui.docstatusbar\_text]: api/ui.html#docstatusbar_text [events.connect()]: api/events.html#connect [events.emit()]: api/events.html#emit -[gui.find]: api/gui.find.html -[gui.get\_split\_table()]: api/gui.html#get_split_table -[gui.goto\_view()]: api/gui.html#goto_view -[gui.gtkmenu()]: api/gui.html#gtkmenu +[gui.find]: api/ui.find.html +[gui.get\_split\_table()]: api/ui.html#get_split_table +[gui.goto\_view()]: api/ui.html#goto_view +[gui.gtkmenu()]: api/ui.html#gtkmenu [string.iconv()]: api/string.html#iconv -[gui.menubar]: api/gui.html#menubar +[gui.menubar]: api/ui.html#menubar [new\_buffer()]: api/_G.html#new_buffer -[gui.print()]: api/gui.html#print +[gui.print()]: api/ui.html#print [quit()]: api/_G.html#quit [reset()]: api/_G.html#reset -[gui.size]: api/gui.html#size -[gui.statusbar\_text]: api/gui.html#statusbar_text -[gui.switch\_buffer()]: api/gui.html#switch_buffer -[gui.title]: api/gui.html#title +[gui.size]: api/ui.html#size +[gui.statusbar\_text]: api/ui.html#statusbar_text +[gui.switch\_buffer()]: api/ui.html#switch_buffer +[gui.title]: api/ui.html#title [\_VIEWS]: api/_G.html#_VIEWS |