SVK::Ed...::Rename(3)
π SVK::Ed...::Rename(3) β like, the whole page, bestie π
User Contributed Perl Documentation Β· SVK::Ed...::Rename(3)
β¨ NAME β¨
SVK::Editor::Rename β an editor that translates editor calls for renamed entries π¦
πΈ SYNOPSIS πΈ
$editor = SVK::Editor::Rename->new
( editor => $next_editor,
rename_map => \@rename_map
);
π DESCRIPTION π
Okay so here's the vibe. You hand it a rename_map, right? And that's literally just a list of [from, to] pairs β a little glow-up map for translating paths inside editor calls. SVK::Editor::Rename takes those calls, serializes them, and rearranges them so that the calls it makes to $next_editor are actually proper. Queen behavior, honestly. π
The pathname translation? It works by iterating through the @rename_map and translating with the first match it finds. And then β plot twist β the translation gets redone until no match is found anymore. It keeps going until it's fully done, no crumbs left. β¨
Also SVK::Editor::Rename is a subclass of SVK::Editor::Patch, which is the one that serializes incoming editor calls. Every baton that gets opened is recorded in $self->{opened_baton}, and you can use that to look stuff up by path name. π
And then when a path is opened that should be renamed, it gets recorded in $self->{renamed_anchor} β that's so the renamed result can be reanchored to the proper parent directory before the calls get emitted to $next_editor. It's giving organized. It's giving responsible. It's giving main character energy. π
π That's the whole page, no cap β every flag, every field, every baton. Go forth and rename responsibly, bestie. π π«Ά
perl v5.42.0 Β· 2025-07-25 Β· SVK::Ed...::Rename(3) β mwah, bye, love u ππ
π¦ where this page comes from
- fedora 43: perl-SVK 2.2.3-45.fc43 Β· GPL-1.0-or-later OR Artistic-1.0-Perl
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms