更改源代码后如何重新加载正在运行的 Shoes 应用程序?

发布于 2024-07-11 21:21:19 字数 260 浏览 6 评论 0原文

我想开始摆弄鞋子。 有件事我想不通。 保存对源代码的更改后,如何重新加载正在运行的 Shoes 应用程序? 我已经找到了打开帮助、控制台和新应用程序的热键。

对我来说,每次进行更改时,开发人员都被迫关闭并重新启动 Shoes 应用程序,这似乎很奇怪。 对于一个以Web化为荣的开发环境,对应的“F5键”在哪里?

也许我错过了一些东西或者找错了地方。

I'd like to start tinkering around with Shoes. There is one thing I can't figure out. How do I reload a running Shoes application after saving changes to the source code? I've already found the hotkeys for opening the Help, Console, and a new app.

To me it seems odd that the developer would be forced to close and restart a Shoes app each time a change is made. For a development environment that prides itself on being web-like, where is the corresponding "F5 key"?

Maybe I'm missing something or looking in the wrong place.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

紫轩蝶泪 2024-07-18 21:21:19

目前还没有这样的捷径。 该文档仅提到您提到的三个快捷方式(用于控制台的 alt+slash、用于帮助的 alt+question 以及用于新应用程序的 alt+period),并且实际上代码仅包含这些快捷方式。 事实上,shoes/app.c 具有以下几行:

shoes_code
shoes_app_keypress(shoes_app *app, VALUE key)
{
  if (key == symAltSlash)
    rb_eval_string("Shoes.show_log");
  else if (key == symAltQuest)
    rb_eval_string("Shoes.show_manual");
  else if (key == symAltDot)
    rb_eval_string("Shoes.show_selector");
  else
    shoes_canvas_send_keypress(app->canvas, key);
  return SHOES_OK;
}

换句话说,三个已知的快捷键被捕获并进行特殊处理,而任何其他按键都会发送到相关应用程序。

但是,您可以编写自己的“包装器”来完成您想要的任务。

There is no such shortcut at present. The documentation only mentions the three shortcuts to which you allude (alt+slash for console, alt+question for help, and alt+period for new app), and indeed the code only contains those shortcuts. Indeed, shoes/app.c has the following lines:

shoes_code
shoes_app_keypress(shoes_app *app, VALUE key)
{
  if (key == symAltSlash)
    rb_eval_string("Shoes.show_log");
  else if (key == symAltQuest)
    rb_eval_string("Shoes.show_manual");
  else if (key == symAltDot)
    rb_eval_string("Shoes.show_selector");
  else
    shoes_canvas_send_keypress(app->canvas, key);
  return SHOES_OK;
}

In other words, the three known shortcuts are trapped and treated specially, while any other keypress is sent to the app in question.

However, it may be possible to write your own "wrapper" that accomplishes your desired task.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文