Skip to content

How to read value of an attribute in command chain? #1468

Answered by t-wissmann
Animeshz asked this question in Q&A
Discussion options

You must be logged in to vote

Probably, you are looking for the use_previous command.

you can create a custom variable with

hc new_attr string tags.my_swap_store

and you can copy another attribute's value into it via:

hc substitute NAME tags.focus.name attr_set tags.my_swap_store NAME

I fear that the rest of your command chain also does not make much sense (unless you really want to rename a tag via a keybinding).

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Animeshz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants