ctags icon indicating copy to clipboard operation
ctags copied to clipboard

main: Zero overwrite time

Open psprint opened this issue 3 years ago • 2 comments

Could the tags be saved via a rename? Like e.g.:

  • save to a temp file,
  • ln -f temporary TAGS,
  • remove temporary?

This way the unready state is as short as possible.

psprint avatar Oct 26 '22 06:10 psprint

Ctags isn't implemented as you expected.

However, I think ctags should be implemented as you expected.

Can

./ctags -o temporary-file ... && mv temorary-file TAGS.

be a temorary solution?

masatake avatar Oct 26 '22 07:10 masatake

yes, it can, however I've written a tool to regenerate Ctags every couple of seconds and I wouldn't want to bother users with such usage requirement. See https://github.com/zservices/command-CI-server/tree/main/examples.

On Wed, 26 Oct 2022 at 07:09, Masatake YAMATO @.***> wrote:

Ctags isn't implemented as you expected.

However, I think ctags should be implemented as you expected.

Can

./ctags -o temporary-file ... && mv temorary-file TAGS.

be a temorary solution?

— Reply to this email directly, view it on GitHub https://github.com/universal-ctags/ctags/issues/3519#issuecomment-1291595370, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABOE4CCQ6N6DKL4UNAO3UGDWFDKLDANCNFSM6AAAAAAROVFUJI . You are receiving this because you authored the thread.Message ID: @.***>

-- Best regards, Sebastian Gniazdowski

psprint avatar Oct 26 '22 09:10 psprint