yn icon indicating copy to clipboard operation
yn copied to clipboard

建议-手机端APP

Open zhangya4548 opened this issue 3 years ago • 6 comments

功能很强大,如果能加上下面的功能就完美了 1.监控文件变动,自动同步到git仓库 2.出手机端app

zhangya4548 avatar Aug 26 '21 02:08 zhangya4548

手机端 APP 还在构思规划,欢迎提供方案和建议。

推送到 Git 仓库这个功能,现在可以编写插件手动点击实现。我现在自己的工作笔记就是存在 Git 仓库中的,点击一下菜单即可提交。

window.registerPlugin({
  name: 'git-push',
  register: ctx => {
    ctx.statusBar.tapMenus(menus => {
      menus['git-push'] = {
        id: 'git-push',
        position: 'left',
        title: 'Git 提交',
        onClick: () => {
          const currentRepo = ctx.store.state.currentRepo;
          const path = currentRepo && currentRepo.path
          if (path) {
            ctx.action.getActionHandler('xterm.run')(`cd '${path}' && git add . && git ci -m 'update' && git push && exit`)
          }
        }
      }
    })
  }
});

将上述代码编写 git-push.js 文件放入<主目录>/plugins/ 中即可。(可在托盘菜单中打开主目录)

注:苹果应用商店的版本因为审核原因不支持终端功能,此插件无效

purocean avatar Aug 26 '21 03:08 purocean

手机端 APP 还在构思规划,欢迎提供方案和建议。

单独开个 Issues 或者 Discussion 来讨论 移动端的方案?

baboon-king avatar Jul 04 '22 07:07 baboon-king

手机端是还没有吗?据说要卖了

miashcf avatar Nov 03 '22 01:11 miashcf

手机端是还没有吗?据说要卖了

@miashcf 手机端还是没有。“卖”是哪里听说的?就是群友开个玩笑,什么后续都没有

purocean avatar Nov 03 '22 01:11 purocean

如果有移动端(指pad,如果就好了,希望ui不会变化太多),

miashcf avatar Nov 09 '22 10:11 miashcf

如果有移动端(指pad,如果就好了,希望ui不会变化太多),

其实手机用来写这些的情况不是很多,只考虑大屏安卓设备(如平板)就好了。还有不好意思确实看到他们说200万,还想着fork一份,担心不让用了。不过您没有答应那个收费条件,已会员支持大佬。

miashcf avatar Nov 09 '22 10:11 miashcf