diff --git a/cards_helper.rb b/cards_helper.rb index 36a9d7a..7b1db52 100644 --- a/cards_helper.rb +++ b/cards_helper.rb @@ -227,6 +227,10 @@ def pager ENV['PAGER'] or 'less -R' end +def ident_text prefix, text + prefix + text.split("\n").join("\n#{prefix}").chomp +end + @doc = {} @doc_str = nil def doc str diff --git a/commands/dir.rb b/commands/dir.rb index 44b7db9..26cd4af 100644 --- a/commands/dir.rb +++ b/commands/dir.rb @@ -4,12 +4,23 @@ char_gets end -doc "Начать редактировать .dairy файл" +doc <