Sublime Forum

Struggling with command line syntax

#1

I can open my file and paste the content of the clipboard by entering into my terminal…

subl --command "paste"  test.css

If I want to insert a string into my file the docs state

[quote]insert
Inserts a string.

characters [String]: String to be inserted.[/quote]

I have tried everything I can think of but I just don’t understand the syntax required. Can some tell me what is wrong with this.

subl --command "insert characters[String of text I want entered into my file]"  test.css
0 Likes

#2

To my knowledge, it is not possible to specify parameters for commands using the CLI.

0 Likes

#3

Dang! I really wanted to be able to run a macro on a file from a bash script.

0 Likes