File: primary_selection.Rd

package info (click to toggle)
r-cran-rstudioapi 0.9.0-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 592 kB
  • sloc: makefile: 2
file content (21 lines) | stat: -rw-r--r-- 643 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/document-methods.R
\name{primary_selection}
\alias{primary_selection}
\title{Extract the Primary Selection}
\usage{
primary_selection(x, ...)
}
\arguments{
\item{x}{A document context, or a selection.}

\item{...}{Optional arguments (currently ignored).}
}
\description{
By default, functions returning a document context will
return a list of selections, including both the 'primary'
selection and also 'other' selections (e.g. to handle the
case where a user might have multiple cursors active).
Use \code{primary_selection()} to extract the primary
selection.
}