[Feature Request] sheets 支持读写同一工作簿内的原生单元格定位链接

Open
#2,925 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
38/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
go
Domain
api, cli

Research direction

Start from the sheets +cells-get and sheets +cells-set command implementations and the link/URL field model they map to; the report shows the V2 read response already carries cellPosition while the write schema rejects it with 900015206. Compare the write payload against the V2 cell/link structure and the existing +range-copy path that preserves native links. Done means +cells-get exposes the target sheet plus A1 cell/range and +cells-set accepts it so the link stays in the current tab; if the write API lacks the field, the issue needs routing to the Sheets API team.

Written by the indexing model from the issue text.

Description

domain/sheets enhancement

使用场景

我在用飞书 CLI 批量维护测试用例表,希望点击用例页的 SQL 编号时,在当前标签页直接跳到同一工作簿里另一张工作表的具体单元格。飞书界面通过「链接到单元格」可以实现。

当前表现

环境:Windows,lark-cli 1.0.100。

  • sheets +cells-get 能读到链接文字,但没有返回原生定位的目标。公开 V2 读取接口可以返回 cellPosition。
    • sheets +cells-set 写入 cellPosition 时返回 900015206,提示该字段未在写入结构中定义。普通网址链接会打开新标签页。
      • sheets +range-copy 能保留现有的原生定位链接,但需要事先建立指向该目标的链接。

期望能力

支持读取原生链接的目标,并按「目标工作表 + A1 单元格或范围」新建和修改原生定位链接。例如把显示文字为 D03 的链接从查询表的 H4 改到 H5 后,点击仍在当前标签页定位。若写入需要表格开放接口配合,也请考虑转给相应团队。

Dominant language
Go
Stars
18.2k
Forks
1.4k
Avg merge
1d 3h
Merged PRs (30d)
18

Getting set up

  • No Dockerfile or Docker Compose file
  • Has a pull request template
  • No contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from larksuite/cli

All issues in larksuite/cli

Similar issues

More Go issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.