touchbar 正在参加 2021 年度 OSC 中国开源项目评选,请投票支持!
touchbar 在 2021 年度 OSC 中国开源项目评选 中已获得 {{ projectVoteCount }} 票,请投票支持!
2021 年度 OSC 中国开源项目评选 正在火热进行中,快来投票支持你喜欢的开源项目!
2021 年度 OSC 中国开源项目评选 >>> 中场回顾
touchbar 获得 2021 年度 OSC 中国开源项目评选「最佳人气项目」 !
授权协议 MIT License
开发语言 JavaScript
操作系统 跨平台
软件类型 开源软件
所属分类 插件和扩展Atom 插件
开源组织
地区 不详
投 递 者 首席测试
适用人群 未知
收录时间 2021-12-17

软件简介

touchbar package

Add touchbar elements to atom

Installation

apm install touchbar

How to use

Touchbar will be loaded on startup. Press ctrl-alt-o to toggle touchbar

Current shipped features:

  • Labels
  • Buttons
  • Insert Text Buttons
  • Color picker
  • Emoji Picker
  • Edit Touchbar
  • Set Icons
  • Insert Text (e.g. { or [). Please use Button Text Insert and insert your desired text in the command input

touchbar screenshot

How to change elements

There is now a basic editing function build in. Press the Edit Touchbar button on your Touchbar or go to Packages -> touchbar -> Edit Touchbar. You can choose the type of your element as well as the label, command and color. Thanks to @fand you can also add / remove and sort items in the edit view!

touchbar edit screenshot

More advanced way:

Go to Settings -> Packages -> touchbar and update the Elements input. This input must be a valid json array of elements.

Example:

[{"name":"color-picker","type":"color-picker"},{"name":"comment-button","type":"button","label":"//","command":"editor:toggle-line-comments","color":"#316ed4","icon":"","iconColor":"default"},{"name":"spacer","type":"button","size":"small","label":"","command":"tree-view:toggle","color":"#00716c","icon":"NSTouchBarSidebarTemplate","iconColor":"white"},{"name":"toggle-command-palette","type":"button","label":"🎨","command":"command-palette:toggle","iconColor":"default"},{"name":"toggle-github","type":"button","label":"GitHub","color":"#919191","command":"github:toggle-github-tab","icon":"","iconColor":"default"},{"name":"edit-touchbar","type":"button","label":"Touchbar","command":"touchbar:edit","color":"#6c233b"},{"type":"spacer","size":"flexible","name":"Config 1547128866278"},{"type":"button-insert","name":"Config 1545387178508","label":"[ ... ]","command":"[","icon":""},{"type":"button-insert","name":"Config 1545387144391","label":"{ ... }","command":"{"},{"type":"button-insert","name":"Config 1545390215291","label":"\\","command":"\\"}]
展开阅读全文

代码

评论

点击引领话题📣 发布并加入讨论🔥
暂无内容
发表了博客
{{o.pubDate | formatDate}}

{{formatAllHtml(o.title)}}

{{parseInt(o.replyCount) | bigNumberTransform}}
{{parseInt(o.viewCount) | bigNumberTransform}}
没有更多内容
暂无内容
发表了问答
{{o.pubDate | formatDate}}

{{formatAllHtml(o.title)}}

{{parseInt(o.replyCount) | bigNumberTransform}}
{{parseInt(o.viewCount) | bigNumberTransform}}
没有更多内容
暂无内容
暂无内容
0 评论
0 收藏
分享
OSCHINA
登录后可查看更多优质内容
返回顶部
顶部