hippie

Hippie Code Completion in RStudio

https://github.com/crew102/hippie

Science Score: 13.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
  • DOI references
  • Academic publication links
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (14.4%) to scientific vocabulary

Keywords

autocompletion codecompletion completions productivity r rstudio-addin shortcuts
Last synced: 6 months ago · JSON representation

Repository

Hippie Code Completion in RStudio

Basic Info
  • Host: GitHub
  • Owner: crew102
  • License: other
  • Language: R
  • Default Branch: main
  • Homepage:
  • Size: 2.93 MB
Statistics
  • Stars: 20
  • Watchers: 1
  • Forks: 0
  • Open Issues: 0
  • Releases: 1
Topics
autocompletion codecompletion completions productivity r rstudio-addin shortcuts
Created almost 4 years ago · Last pushed over 1 year ago
Metadata Files
Readme Changelog License

README.md

Hippie Code Completion


GitHub Actions workflow status

An RStudio addin for Hippie Code Completion

  • Speed. Hit fewer keystrokes in getting the word you want
  • More completions in R. Extends completions to comments, string literals, and all throughout Roxygen blocks
  • Completions outside R. Get completions in files where you otherwise can't - .yml, .txt, .md, etc.

About

Hippie's a completion engine that looks in your active source file for words to suggest. This differs from traditional completion in RStudio, which is more focused on using the R execution environment for identifying suggestions. Using both completion methods allows you to supercharge your RStudio experience.

Why Hippie?

  • Speed. Often times the word you want appears right around your cursor, or you know you've used it recently in your current file. hippie allows you to use this knowledge to provide a more relevant list of suggestions than what traditional code completion would offer. For example, with traditional completion I have to type 5 characters before starwars appears as the first suggestion, and 4 characters before filter appears as the first suggestion. With Hippie, it's 1 character each.

    Even in larger files, you usually only need to type one or two characters before invoking the Hippie shortcut, and the first suggestion will be the one you want.

  • Completions everywhere. Hippie works in areas where normal autocomplete doesn't. In R code, you can get completions in literals, comments, and everywhere in your Roxygen blocks.

    Hippie also extends to all file types, including text files, markdown, config files, etc. You can even get completions in the text sections of RMarkdown docs.

Installation

  • Install the R package. You can get the stable version from CRAN with:

r install.packages("hippie")

...Or the development version with:

r # install.packages("devtools") devtools::install_github("crew102/hippie")

  • Restart RStudio. RStudio will automatically detect the hippie addin moving forward.

  • Add a shortcut.

    • Go to Tools, then Modify Keyboard Shortcuts. Search for hippie, and you should see something like this:

    * You can add a shortcut for both up and down, which refers to the direction hippie will look for the next matching token (above or below the cursor). You only need to use one direction, as hippie will cycle from the bottom to the top of the document and vice versa, but it can be faster if you know which direction to move next. * Type whichever keys you want to use for the shortcut in the *Shortcut* box, then hit *Apply*. Hippie Completion will now work whenever you're in an RStudio editor (no need to call `library(hippie)`).

Thanks to

  • Anders Holst, the creator of Hippie Expand in Emacs, both for the original idea of Hippie Completion and also for the fun name. According to Holst:

I came up with this try-function idea that tries one kind of expansion at a time, and lets the user press repeatedly to sequence through the alternatives. I called it Hippie Expand to signal that it's completely unrealistic, dreaming, kind of high. I was entirely convinced that it would not work in practice - that it would be necessary to press endlessly on the key it was bound to before the wanted expansion would show up.

Learning more

Owner

  • Name: Chris Baker
  • Login: crew102
  • Kind: user
  • Location: Washington DC

GitHub Events

Total
Last Year

Issues and Pull Requests

Last synced: 7 months ago

All Time
  • Total issues: 0
  • Total pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Total issue authors: 0
  • Total pull request authors: 0
  • Average comments per issue: 0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 0
  • Pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Issue authors: 0
  • Pull request authors: 0
  • Average comments per issue: 0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
Pull Request Authors
Top Labels
Issue Labels
Pull Request Labels

Packages

  • Total packages: 2
  • Total downloads:
    • cran 230 last-month
  • Total dependent packages: 0
    (may contain duplicates)
  • Total dependent repositories: 0
    (may contain duplicates)
  • Total versions: 2
  • Total maintainers: 1
proxy.golang.org: github.com/crew102/hippie
  • Versions: 1
  • Dependent Packages: 0
  • Dependent Repositories: 0
Rankings
Dependent packages count: 5.5%
Average: 5.7%
Dependent repos count: 5.9%
Last synced: 7 months ago
cran.r-project.org: hippie

Hippie Code Completion in 'RStudio'

  • Versions: 1
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Downloads: 230 Last month
Rankings
Stargazers count: 17.0%
Forks count: 28.8%
Dependent packages count: 29.8%
Dependent repos count: 35.5%
Average: 37.9%
Downloads: 78.5%
Maintainers (1)
Last synced: 7 months ago

Dependencies

DESCRIPTION cran
  • rstudioapi >= 0.13 imports
  • sourcetools * imports
  • utils * imports
  • fs * suggests
  • testthat >= 3.0.0 suggests
  • withr * suggests
.github/workflows/check-standard.yaml actions
  • actions/checkout v2 composite
  • r-lib/actions/check-r-package v1 composite
  • r-lib/actions/setup-pandoc v1 composite
  • r-lib/actions/setup-r v1 composite
  • r-lib/actions/setup-r-dependencies v1 composite