User defined keybindings should take precedence over installed tools

未关闭
#660 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
3/5
预计耗时
1-2 天
新手友好度
48/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
停滞
领域
desktop, devtools

调研方向

在 DrRacket 8.11.1 中使用 drracket-paredit 包和所示的用户键绑定文件,并通过 framework/keybinding-lang 重现该问题。首先跟踪用户定义的绑定和已安装工具的绑定是如何加载和排序的。完成标准是用户的 M-right 和 M-left 绑定具有优先级,并能跨越 sexpression 跳转。

由索引模型根据 Issue 内容生成。

描述

Intuitively installed DrRacket tools/extensions should take precedence over the builtin defaults, and settings that the user specifies should take precedence over that. This doesn't seem to be the case with keybindings.

To replicate:
A fresh install of Racket 8.11.1, install the drracket-paredit package, and use the menu to add the following user defined keybinding file.

#lang s-exp framework/keybinding-lang

(keybinding "m:right"
            (λ (editor event)
              (send editor forward-sexp)))

(keybinding "m:left"
            (λ (editor event)
              (send editor backward-sexp)))

Restart DrRacket, and attempting to M-right and M-left your way around fails to jump across sexpressions. Instead drracket-paredits binding (which it calls forward-atom and backward-atom) is used instead.

It looks like the order in which things are getting loaded should be swapped.

主要语言
Racket
星标
517
派生
102
平均合并
20 分钟
30 天内合并 PR
1

环境准备

这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

racket/drracket 的其他 Issue

查看 racket/drracket 的全部 Issue

相似的 Issue

更多 Desktop Dev Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。