Skip to content

Need to copy param values from json (copy text inside quotes " ") #600

Answered by gdh1995
straddler asked this question in Q&A
Discussion options

You must be logged in to vote

The 2nd step can be replaced by such mapping rules:

map <v-to_lb> editText dom run="extend,forward,lineBoundary"
run xxx to_lb+autoCopy#sedKeys="1"
# then `xxx` will extend selection and copy

Wiki of the run directive: https://github.com/gdh1995/vimium-c/wiki/Auto-run-a-tree-of-commands .

BTW, the regexp is not so optimal, and can be replaced by:

# `matched` means to return: "replaced result" or a first "capturing group"
1="(.*?)"==,matched

Replies: 4 comments 4 replies

Comment options

You must be logged in to vote
1 reply
@straddler
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@straddler
Comment options

@gdh1995
Comment options

@straddler
Comment options

Answer selected by straddler
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
2 participants