about summary refs log tree commit diff stats
path: root/edit
Commit message (Collapse)AuthorAgeFilesLines
* 3984 - bugfix: display errors when scrolling recipe sideKartik K. Agaram2017-08-251-0/+38
| | | | This regression was (also) introduced by commit 3902 in June.
* 3982 - bugfix: clear old recipe errors on F4Kartik K. Agaram2017-08-222-0/+60
| | | | | | This regression was introduced by commit 3902 in June. Making this commit clean took the last 4 commits of reorganizing.
* 3981Kartik K. Agaram2017-08-222-7/+4
| | | | | It's always been ugly that I referred to a later layer/feature in a label name.
* 3980Kartik K. Agaram2017-08-226-68/+68
|
* 3979Kartik K. Agaram2017-08-221-4/+4
|
* 3978Kartik K. Agaram2017-08-221-13/+18
|
* 3977Kartik K. Agaram2017-08-221-1/+1
|
* 3962Kartik K. Agaram2017-06-271-6/+13
| | | | | Yet another regression, this time cascading from commit 3953. My scenario wasn't actually testing what I thought it was testing.
* 3960Kartik K. Agaram2017-06-251-14/+38
| | | | | Don't refresh entire sandbox side when toggling the expected result for a single sandbox.
* 3959Kartik K. Agaram2017-06-251-2/+13
| | | | | | | Don't unnecessarily write sandboxes to disk on F4. This seems to save almost 20% time when processing a large lesson directory with 36 sandboxes.
* 3958Kartik K. Agaram2017-06-252-13/+19
| | | | | | | | Improvement on fix 3957: rather than put a band-aid over a slow operation, eliminate the slowdown entirely. In this case it turns out we're unnecessarily saving files to disk when they could never be modified. Are we doing this on F4 as well?!
* 3957Kartik K. Agaram2017-06-251-0/+2
| | | | | Marking sandbox responses as expected can take a long time if there are many sandboxes. Indicate when a click is being worked on.
* 3955Kartik K. Agaram2017-06-252-36/+32
| | | | | Move a scenario which is after commit 3954 applicable to both editors, not just the recipe side.
* 3954Kartik K. Agaram2017-06-253-110/+39
| | | | | | | | | | | | | | | | | | | | | | | | | | | As a blanket rule, down-arrow now stops scrolling once the bottom margin comes on screen. Now that we have page-wise scrolling with ctrl-f/b and line-wise scrolling with ctrl-s/x, we don't need to conflate scroll positioning with the arrow keys. And as a result, early students no longer have to struggle with accidentally scrolling part of the sandbox off the screen when there's tons of empty space available. `move-to-next-line` is still super messy and will need further rethinking, but this commit simplifies the codebase as a whole by eliminating a couple of historical accidents: a) We only introduced scrolling past the bottom of the screen to allow more sandboxes to come into view before we had scrolling for the sandbox side. b) We undid scrolling past the bottom in just the recipe side to allow errors to come into view. Since these historical details are now irrelevant, we no longer need separate logic for the recipe and sandbox sides, and we don't need to keep track of the recipe-bottom separate from the bottom margin of arbitrary editors.
* 3953Kartik K. Agaram2017-06-241-24/+51
| | | | | | | | | Redo cursor-down to fix a bug. This should be the final bug I find as part of my audit of everywhere we compare characters to newlines in layer 3 of the edit/ app. Pretty messy implementation, but we'll clean it up now.
* 3952Kartik K. Agaram2017-06-241-11/+10
|
* 3950Kartik K. Agaram2017-06-241-2/+43
| | | | | | Fix a regression caused by commit 3919. Thanks Juan Crispin Hernandez for running into this.
* 3946Kartik K. Agaram2017-06-231-3/+3
| | | | Fix the failing scenario of commit 3944.
* 3944Kartik K. Agaram2017-06-231-1/+25
| | | | | | | Reintroduce the failing test of commit 3938. It has two problems: a) it's failing, and b) it's not failing the same way as with a real screen.
* 3943Kartik K. Agaram2017-06-234-45/+0
| | | | Undo commit 3938 and almost everything after. Let's do this right.
* 3942Kartik K. Agaram2017-06-234-18/+18
| | | | | | | | No, my conclusion in the previous commit was wrong. When you print a character on the right margin, the cursor coordinates always wrap around to the left margin on the next row. It's just that if you're at the bottom of the screen, scrolling gives the impression that the row didn't change.
* 3941Kartik K. Agaram2017-06-234-13/+29
| | | | | | | | | | | | | | | | | Even though the bug of commit 3938 is now fixed, I'm still trying to track down why the failure looked different on the fake screen than on the real one. Snapshot as I try to track down the difference. One key lesson is that the approach of commit 3860 -- updating the cursor before rather than after printing each character -- turns out to be untenable. A sequence of `print` followed by `cursor-position` needs to behave the same as the real screen. But it's still not clear how the real screen. When you get to the end of a line the cursor position wraps after print to the left margin (column 0) on the next row. When you get to the bottom right the cursor position wraps to the *bottom left* margin. How the heck does it know to scroll on the next print, then? Is there some hidden state in the terminal?
* 3940Kartik K. Agaram2017-06-221-1/+1
|
* 3939Kartik K. Agaram2017-06-222-3/+9
|
* 3938Kartik K. Agaram2017-06-221-2/+32
| | | | | | | Fix an out-of-bounds write to the screen when sandboxes aligned just right. Thanks Ella Couch for reporting this issue.
* 3935Kartik K. Agaram2017-06-223-3/+3
|
* 3928Kartik K. Agaram2017-06-191-4/+5
|
* 3926Kartik K. Agaram2017-06-191-2/+57
| | | | | | Bugfix: when you hit `enter`, the cursor-row does not increment in *one* special situation: when the line wraps and the cursor is right at the start of one of the wrapped lines.
* 3925Kartik K. Agaram2017-06-191-0/+292
| | | | Bugfix: adjust row when hitting ctrl-u on wrapped lines.
* 3924Kartik K. Agaram2017-06-181-1/+1
|
* 3923Kartik K. Agaram2017-06-181-15/+91
| | | | | Bugfix: ctrl-a leaves things consistent in the presence of wrapped lines.
* 3922Kartik K. Agaram2017-06-172-7/+4
|
* 3921Kartik K. Agaram2017-06-162-4/+6
|
* 3919Kartik K. Agaram2017-06-162-5/+89
| | | | Bugfix: up-arrow in combination with wrapped lines.
* 3918Kartik K. Agaram2017-06-161-3/+47
| | | | Bugfix: handle wrapped lines when moving to end of line.
* 3916 - minimal prints when commenting linesKartik K. Agaram2017-06-161-11/+139
|
* 3915Kartik K. Agaram2017-06-161-4/+2
|
* 3914Kartik K. Agaram2017-06-161-8/+8
| | | | Remember that `before-previous-line` deals with wrapped screen lines.
* 3913Kartik K. Agaram2017-06-151-2/+45
| | | | Bugfix in ctrl-u.
* 3911Kartik K. Agaram2017-06-151-19/+3
|
* 3904Kartik K. Agaram2017-06-092-6/+6
| | | | Standardize functions to put the main object being modified first.
* 3903 - minimal render when pressing 'tab'Kartik K. Agaram2017-06-091-15/+39
| | | | Turns out all I had to do was reset `go-render?` to false.
* 3902 - drop redundant redraw of recipe side on F4Kartik K. Agaram2017-06-098-13/+52
| | | | | | This change is interesting because I only updated one test to gain confidence that F4 will never redraw the recipe side. (Most of the changes are to explicitly render-all before each scenario.)
* 3897 - various updates to documentationKartik K. Agaram2017-05-291-0/+18
|
* 3894 - comment/uncomment lines in edit appKartik K. Agaram2017-05-291-3/+111
|
* 3892Kartik K. Agaram2017-05-291-4/+4
| | | | Fix a keyboard shortcut conflict in commit 3884.
* 3891Kartik K. Agaram2017-05-291-10/+10
|
* 3886Kartik K. Agaram2017-05-281-5/+5
|
* 3885Kartik K. Agaram2017-05-281-0/+21
|
* 3884 - per-line scroll in edit/ appKartik K. Agaram2017-05-282-0/+63
|
span>); gboolean cmd_carbons(ProfWin* window, const char* const command, gchar** args); gboolean cmd_receipts(ProfWin* window, const char* const command, gchar** args); gboolean cmd_info(ProfWin* window, const char* const command, gchar** args); gboolean cmd_intype(ProfWin* window, const char* const command, gchar** args); gboolean cmd_invite(ProfWin* window, const char* const command, gchar** args); gboolean cmd_join(ProfWin* window, const char* const command, gchar** args); gboolean cmd_leave(ProfWin* window, const char* const command, gchar** args); gboolean cmd_log(ProfWin* window, const char* const command, gchar** args); gboolean cmd_msg(ProfWin* window, const char* const command, gchar** args); gboolean cmd_nick(ProfWin* window, const char* const command, gchar** args); gboolean cmd_notify(ProfWin* window, const char* const command, gchar** args); gboolean cmd_pgp(ProfWin* window, const char* const command, gchar** args); #ifdef HAVE_LIBGPGME gboolean cmd_ox(ProfWin* window, const char* const command, gchar** args); #endif // HAVE_LIBGPGME gboolean cmd_outtype(ProfWin* window, const char* const command, gchar** args); gboolean cmd_prefs(ProfWin* window, const char* const command, gchar** args); gboolean cmd_priority(ProfWin* window, const char* const command, gchar** args); gboolean cmd_quit(ProfWin* window, const char* const command, gchar** args); gboolean cmd_reconnect(ProfWin* window, const char* const command, gchar** args); gboolean cmd_room(ProfWin* window, const char* const command, gchar** args); gboolean cmd_rooms(ProfWin* window, const char* const command, gchar** args); gboolean cmd_bookmark(ProfWin* window, const char* const command, gchar** args); gboolean cmd_bookmark_ignore(ProfWin* window, const char* const command, gchar** args); gboolean cmd_roster(ProfWin* window, const char* const command, gchar** args); gboolean cmd_software(ProfWin* window, const char* const command, gchar** args); gboolean cmd_splash(ProfWin* window, const char* const command, gchar** args); gboolean cmd_states(ProfWin* window, const char* const command, gchar** args); gboolean cmd_status_get(ProfWin* window, const char* const command, gchar** args); gboolean cmd_status_set(ProfWin* window, const char* const command, gchar** args); gboolean cmd_sub(ProfWin* window, const char* const command, gchar** args); gboolean cmd_theme(ProfWin* window, const char* const command, gchar** args); gboolean cmd_wintitle(ProfWin* window, const char* const command, gchar** args); gboolean cmd_vercheck(ProfWin* window, const char* const command, gchar** args); gboolean cmd_who(ProfWin* window, const char* const command, gchar** args); gboolean cmd_win(ProfWin* window, const char* const command, gchar** args); gboolean cmd_alias(ProfWin* window, const char* const command, gchar** args); gboolean cmd_xmlconsole(ProfWin* window, const char* const command, gchar** args); gboolean cmd_ping(ProfWin* window, const char* const command, gchar** args); gboolean cmd_form(ProfWin* window, const char* const command, gchar** args); gboolean cmd_occupants(ProfWin* window, const char* const command, gchar** args); gboolean cmd_kick(ProfWin* window, const char* const command, gchar** args); gboolean cmd_ban(ProfWin* window, const char* const command, gchar** args); gboolean cmd_subject(ProfWin* window, const char* const command, gchar** args); gboolean cmd_affiliation(ProfWin* window, const char* const command, gchar** args); gboolean cmd_role(ProfWin* window, const char* const command, gchar** args); gboolean cmd_privileges(ProfWin* window, const char* const command, gchar** args); gboolean cmd_presence(ProfWin* window, const char* const command, gchar** args); gboolean cmd_wrap(ProfWin* window, const char* const command, gchar** args); gboolean cmd_time(ProfWin* window, const char* const command, gchar** args); gboolean cmd_resource(ProfWin* window, const char* const command, gchar** args); gboolean cmd_inpblock(ProfWin* window, const char* const command, gchar** args); gboolean cmd_titlebar(ProfWin* window, const char* const command, gchar** args); gboolean cmd_titlebar_show_hide(ProfWin* window, const char* const command, gchar** args); gboolean cmd_mainwin(ProfWin* window, const char* const command, gchar** args); gboolean cmd_statusbar(ProfWin* window, const char* const command, gchar** args); gboolean cmd_inputwin(ProfWin* window, const char* const command, gchar** args); gboolean cmd_script(ProfWin* window, const char* const command, gchar** args); gboolean cmd_export(ProfWin* window, const char* const command, gchar** args); gboolean cmd_charset(ProfWin* window, const char* const command, gchar** args); gboolean cmd_console(ProfWin* window, const char* const command, gchar** args); gboolean cmd_command_list(ProfWin* window, const char* const command, gchar** args); gboolean cmd_command_exec(ProfWin* window, const char* const command, gchar** args); gboolean cmd_change_password(ProfWin* window, const char* const command, gchar** args); gboolean cmd_plugins(ProfWin* window, const char* const command, gchar** args); gboolean cmd_plugins_sourcepath(ProfWin* window, const char* const command, gchar** args); gboolean cmd_plugins_install(ProfWin* window, const char* const command, gchar** args); gboolean cmd_plugins_update(ProfWin* window, const char* const command, gchar** args); gboolean cmd_plugins_uninstall(ProfWin* window, const char* const command, gchar** args); gboolean cmd_plugins_load(ProfWin* window, const char* const command, gchar** args); gboolean cmd_plugins_unload(ProfWin* window, const char* const command, gchar** args); gboolean cmd_plugins_reload(ProfWin* window, const char* const command, gchar** args); gboolean cmd_plugins_python_version(ProfWin* window, const char* const command, gchar** args); gboolean cmd_blocked(ProfWin* window, const char* const command, gchar** args); gboolean cmd_account(ProfWin* window, const char* const command, gchar** args); gboolean cmd_account_list(ProfWin* window, const char* const command, gchar** args); gboolean cmd_account_show(ProfWin* window, const char* const command, gchar** args); gboolean cmd_account_add(ProfWin* window, const char* const command, gchar** args); gboolean cmd_account_remove(ProfWin* window, const char* const command, gchar** args); gboolean cmd_account_enable(ProfWin* window, const char* const command, gchar** args); gboolean cmd_account_disable(ProfWin* window, const char* const command, gchar** args); gboolean cmd_account_rename(ProfWin* window, const char* const command, gchar** args); gboolean cmd_account_default(ProfWin* window, const char* const command, gchar** args); gboolean cmd_account_set(ProfWin* window, const char* const command, gchar** args); gboolean cmd_account_clear(ProfWin* window, const char* const command, gchar** args); gboolean cmd_tls_certpath(ProfWin* window, const char* const command, gchar** args); gboolean cmd_tls_trust(ProfWin* window, const char* const command, gchar** args); gboolean cmd_tls_trusted(ProfWin* window, const char* const command, gchar** args); gboolean cmd_tls_revoke(ProfWin* window, const char* const command, gchar** args); gboolean cmd_tls_cert(ProfWin* window, const char* const command, gchar** args); gboolean cmd_otr_char(ProfWin* window, const char* const command, gchar** args); gboolean cmd_otr_log(ProfWin* window, const char* const command, gchar** args); gboolean cmd_otr_libver(ProfWin* window, const char* const command, gchar** args); gboolean cmd_otr_policy(ProfWin* window, const char* const command, gchar** args); gboolean cmd_otr_gen(ProfWin* window, const char* const command, gchar** args); gboolean cmd_otr_myfp(ProfWin* window, const char* const command, gchar** args); gboolean cmd_otr_theirfp(ProfWin* window, const char* const command, gchar** args); gboolean cmd_otr_start(ProfWin* window, const char* const command, gchar** args); gboolean cmd_otr_end(ProfWin* window, const char* const command, gchar** args); gboolean cmd_otr_trust(ProfWin* window, const char* const command, gchar** args); gboolean cmd_otr_untrust(ProfWin* window, const char* const command, gchar** args); gboolean cmd_otr_secret(ProfWin* window, const char* const command, gchar** args); gboolean cmd_otr_question(ProfWin* window, const char* const command, gchar** args); gboolean cmd_otr_answer(ProfWin* window, const char* const command, gchar** args); gboolean cmd_otr_sendfile(ProfWin* window, const char* const command, gchar** args); gboolean cmd_wins(ProfWin* window, const char* const command, gchar** args); gboolean cmd_wins_unread(ProfWin* window, const char* const command, gchar** args); gboolean cmd_wins_attention(ProfWin* window, const char* const command, gchar** args); gboolean cmd_wins_prune(ProfWin* window, const char* const command, gchar** args); gboolean cmd_wins_swap(ProfWin* window, const char* const command, gchar** args); gboolean cmd_form_field(ProfWin* window, char* tag, gchar** args); gboolean cmd_omemo_gen(ProfWin* window, const char* const command, gchar** args); gboolean cmd_omemo_char(ProfWin* window, const char* const command, gchar** args); gboolean cmd_omemo_log(ProfWin* window, const char* const command, gchar** args); gboolean cmd_omemo_start(ProfWin* window, const char* const command, gchar** args); gboolean cmd_omemo_end(ProfWin* window, const char* const command, gchar** args); gboolean cmd_omemo_fingerprint(ProfWin* window, const char* const command, gchar** args); gboolean cmd_omemo_trust(ProfWin* window, const char* const command, gchar** args); gboolean cmd_omemo_untrust(ProfWin* window, const char* const command, gchar** args); gboolean cmd_omemo_trust_mode(ProfWin* window, const char* const command, gchar** args); gboolean cmd_omemo_policy(ProfWin* window, const char* const command, gchar** args); gboolean cmd_omemo_clear_device_list(ProfWin* window, const char* const command, gchar** args); gboolean cmd_save(ProfWin* window, const char* const command, gchar** args); gboolean cmd_reload(ProfWin* window, const char* const command, gchar** args); gboolean cmd_paste(ProfWin* window, const char* const command, gchar** args); gboolean cmd_color(ProfWin* window, const char* const command, gchar** args); gboolean cmd_avatar(ProfWin* window, const char* const command, gchar** args); gboolean cmd_os(ProfWin* window, const char* const command, gchar** args); gboolean cmd_correction(ProfWin* window, const char* const command, gchar** args); gboolean cmd_correct(ProfWin* window, const char* const command, gchar** args); gboolean cmd_slashguard(ProfWin* window, const char* const command, gchar** args); gboolean cmd_serversoftware(ProfWin* window, const char* const command, gchar** args); gboolean cmd_url_open(ProfWin* window, const char* const command, gchar** args); gboolean cmd_url_save(ProfWin* window, const char* const command, gchar** args); gboolean cmd_executable_avatar(ProfWin* window, const char* const command, gchar** args); gboolean cmd_executable_urlopen(ProfWin* window, const char* const command, gchar** args); gboolean cmd_executable_urlsave(ProfWin* window, const char* const command, gchar** args); gboolean cmd_executable_editor(ProfWin* window, const char* const command, gchar** args); gboolean cmd_mam(ProfWin* window, const char* const command, gchar** args); gboolean cmd_editor(ProfWin* window, const char* const command, gchar** args); gboolean cmd_correct_editor(ProfWin* window, const char* const command, gchar** args); gboolean cmd_silence(ProfWin* window, const char* const command, gchar** args); gboolean cmd_register(ProfWin* window, const char* const command, gchar** args); gboolean cmd_mood(ProfWin* window, const char* const command, gchar** args); #endif