MCPcopy
hub / github.com/zxlie/FeHelper / _copySelectedPath

Function _copySelectedPath

apps/json-format/format-lib.js:1258–1267  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1256 };
1257
1258 let _copySelectedPath = function () {
1259 let selected = _getExplicitSelectedJsonElement();
1260 if (!selected.length) {
1261 toast('请先选中一个 JSON 节点。');
1262 return _getSelectionInfo(selected);
1263 }
1264 let info = _getSelectionInfo(selected);
1265 _copyToClipboard(info.path || '$', '当前 JSON Path 已复制到剪贴板!');
1266 return info;
1267 };
1268
1269 let _copySelectedValue = function () {
1270 let selected = _getExplicitSelectedJsonElement();

Callers 1

format-lib.jsFile · 0.85

Calls 4

_getSelectionInfoFunction · 0.85
_copyToClipboardFunction · 0.70
toastFunction · 0.50

Tested by

no test coverage detected