Skip to content

Commit 4f0da0d

Browse files
Added r.view command: View(variable) (#1319)
* Added r.view command: View(variable) * Update command title --------- Co-authored-by: Kun Ren <[email protected]>
1 parent 3a0784f commit 4f0da0d

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

package.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -453,6 +453,11 @@
453453
"category": "R",
454454
"command": "r.names"
455455
},
456+
{
457+
"title": "View selected object",
458+
"category": "R",
459+
"command": "r.view"
460+
},
456461
{
457462
"title": "Create gitignore",
458463
"category": "R",

src/extension.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ export async function activate(context: vscode.ExtensionContext): Promise<apiImp
7070
'r.head': () => rTerminal.runSelectionOrWord(['head']),
7171
'r.thead': () => rTerminal.runSelectionOrWord(['t', 'head']),
7272
'r.names': () => rTerminal.runSelectionOrWord(['names']),
73+
'r.view': () => rTerminal.runSelectionOrWord(['View']),
7374
'r.runSource': () => { void rTerminal.runSource(false); },
7475
'r.runSelection': (code?: string) => { code ? void rTerminal.runTextInTerm(code) : void rTerminal.runSelection(); },
7576
'r.runFromLineToEnd': rTerminal.runFromLineToEnd,

0 commit comments

Comments
 (0)