can async task work with visual selection?

Open
#49 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
25/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
vim
Domain
tooling

Research direction

Start by reading the macro section and the existing VIM_CWORD handling to understand how async tasks receive Vim context. Determine how a visual selection could be passed to a task for website searches or scripts. Done means the supported invocation and selection-passing behavior are clearly defined and usable.

Written by the indexing model from the issue text.

Description

I checked out the macro section and don't see anything specifying visual selection, is there anyway to invoke a task and pass the current visual selection to it? for example, to search it on some website or invoke some script with it. VIM_CWORD is the closest I can find, but it's much less flexible than visual selection. async task seems heavily file oriented, I think it can be more useful by working with other vim elements, such as visual selection. thanks.

Dominant language
Vim Script
Stars
936
Forks
32
PR merge metrics
No merged PRs in 30d

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

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 skywind3000/asynctasks.vim

All issues in skywind3000/asynctasks.vim

Similar issues

More DevTools issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.