tylr: a tiny tile-based structure editor

tylr: a tiny tile-based structure editor
复制标题

tyler:一个基于图块的小型结构编辑器

DOI:
10.1145/3546196.3550164
复制
发表时间:
2022
期刊:
Proceedings of the 7th ACM SIGPLAN International Workshop on Type-Driven Development
影响因子:
--
通讯作者:
Cyrus Omar
Cyrus Omar
中科院分区:
--
文献类型:
--
作者:
David Moon;Andrew Blinn;Cyrus Omar

文献摘要

被引文献

相似文献

为键盘输入而设计的结构编辑器通常很难解决维护分层术语结构和提供有效的线性编辑启示之间的紧张关系。当代的设计要么妥协的结构,推迟到接近树叶的文字,否则保持结构,只允许编辑,转换选定的术语。然而,视觉上相邻的序列(例如运算符、操作数和单个分隔符)并不总是干净地切割到术语边界,因此即使是有经验的用户也报告了选择和代码重构任务的困难。我们提出了一种新的方法来结构编辑,瓷砖为基础的编辑,保持期限结构,同时提供线性选择和修改启示。这个想法是允许将术语拆解成围绕用户选择的线性排序的瓦片和碎片,同时引导用户进行重组操作并以确保重新组装成术语的方式自动插入孔。本文介绍了tylr,一个基于平铺的小型编辑器,主要用于突出这一独特的灵活启示。我们通过一项实验室研究评估了tylr,参与者使用tylr以及基于JetBrains MPS(一种最先进的键盘驱动结构编辑器生成器)的文本编辑器和结构编辑器执行简单的代码转录和修改任务。我们的研究结果表明,参与者经常使用泰勒的选择表现力,这种灵活性帮助他们完成一些修改任务显着更快地比MPS编辑器。我们进一步观察到,一些参与者使用tylr比使用文本更快地完成了一些任务,但在我们目前的设计和实现中,由于一些限制,总体上速度较慢。我们讨论了这些限制,并提出了未来的研究和设计方向,旨在更灵活的结构编辑界面。
Structure editors designed for keyboard input often struggle to resolve the tension between maintaining hierarchical term structure and offering efficient linear editing affordances. Contemporary designs either compromise structure by deferring to text near the leaves or else maintain structure by permitting only edits that transform the selected term. However, visually adjacent sequences (e.g. of operators, operands, and individual delimiters) do not always cleave cleanly to term boundaries, so even experienced users report difficulties with selection and code restructuring tasks. We propose a novel approach to structure editing, tile-based editing, that maintains term structure while offering linear selection and modification affordances. The idea is to allow disassembly of terms into linearly sequenced tiles and shards around user selections, while guiding the user through restructuring actions and automatically inserting holes in a manner that ensures reassembly into a term. This paper introduces tylr, a tiny tile-based editor designed primarily to highlight this uniquely flexible set of affordances. We evaluated tylr with a lab study where participants performed simple code transcription and modification tasks using tylr as well as a text editor and a structure editor built on JetBrains MPS, a state-of-the-art keyboard-driven structure editor generator. Our results indicate that participants frequently made use of tylr’s selection expressivity, and that this flexibility helped them complete some modification tasks significantly more quickly than with the MPS editor. We further observed that a few participants completed some tasks more quickly using tylr than with text, but were in general slowed by a number of limitations in our current design and implementation. We discuss these limitations and suggest future research and design directions aiming toward more flexible structure editing interfaces.