martanne / vis

A vi-like editor based on Plan 9's structural regular expressions
Other
4.2k stars 258 forks source link

`%` in filename results in `Command failed` #1046

Closed Eolien55 closed 1 year ago

Eolien55 commented 1 year ago

When the filename contains a '%', vis warns Command failed .

ninewise commented 1 year ago

Could you be more specific? vis %.txt works fine, here. What command are you executing?

mcepl commented 1 year ago

I think he wants % as a variable with the current document’s filename (as it is done in vim). vis doesn’t support this, you must use vis_filename environmental variable.

If you would like compatibility with vim in this, then this is a duplicate of #1013.

Eolien55 commented 1 year ago

I think he wants % as a variable with the current document’s filename I was talking about vis outputting Command failed.

The issue is with one of the plugins, not vis itself (more specifically the vis-title one, which uses printf and interprets % as a special character). Sorry about that