• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

tstack / lnav / 18921488161-2616

29 Oct 2025 08:39PM UTC coverage: 68.075% (-0.8%) from 68.921%
18921488161-2616

push

github

tstack
[files-panel] show file load progress

18 of 23 new or added lines in 6 files covered. (78.26%)

607 existing lines in 26 files now uncovered.

49621 of 72892 relevant lines covered (68.07%)

427861.28 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/msg.text.cc
1
/**
2
 * Copyright (c) 2025, Timothy Stack
3
 *
4
 * All rights reserved.
5
 *
6
 * Redistribution and use in source and binary forms, with or without
7
 * modification, are permitted provided that the following conditions are met:
8
 *
9
 * * Redistributions of source code must retain the above copyright notice, this
10
 * list of conditions and the following disclaimer.
11
 * * Redistributions in binary form must reproduce the above copyright notice,
12
 * this list of conditions and the following disclaimer in the documentation
13
 * and/or other materials provided with the distribution.
14
 * * Neither the name of Timothy Stack nor the names of its contributors
15
 * may be used to endorse or promote products derived from this software
16
 * without specific prior written permission.
17
 *
18
 * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ''AS IS'' AND ANY
19
 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
20
 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
21
 * DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY
22
 * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
23
 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
24
 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
25
 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
26
 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
27
 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28
 */
29

30
#include "msg.text.hh"
31

32
#include "base/lnav.console.hh"
33

34
using namespace lnav::roles::literals;
35

36
namespace lnav::messages::view {
37

38
const std::vector<attr_line_t>*
UNCOV
39
no_files()
×
40
{
41
    static const auto retval
UNCOV
42
        = lnav::console::user_message::info(
×
43
              "No log or text files are currently loaded")
UNCOV
44
              .with_help(attr_line_t("Use the ")
×
UNCOV
45
                             .append(":open"_keyword)
×
UNCOV
46
                             .append(" command to open a file or directory"))
×
UNCOV
47
              .to_attr_line()
×
UNCOV
48
              .split_lines();
×
49

UNCOV
50
    return &retval;
×
51
}
52

53
const std::vector<attr_line_t>*
54
only_text_files()
×
55
{
56
    static const auto retval
57
        = lnav::console::user_message::info(
×
58
              "Only text files are currently loaded, they have not been "
59
              "detected as log files")
60
              .with_note(
×
61
                  "Check the Files panel below to get more details on why the "
62
                  "files are treated as text")
63
              .with_help(attr_line_t("Press '")
×
64
                             .append("t"_hotkey)
×
65
                             .append("' to switch to the TEXT view"))
×
66
              .to_attr_line()
×
67
              .split_lines();
×
68

69
    return &retval;
×
70
}
71

72
const std::vector<attr_line_t>*
73
only_log_files()
×
74
{
75
    static const auto retval
76
        = lnav::console::user_message::info(
×
77
              "All loaded files have been detected as logs, there are no plain "
78
              "text files")
79
              .with_help(attr_line_t("Press '")
×
80
                             .append("q"_hotkey)
×
81
                             .append("' to exit this view"))
×
82
              .to_attr_line()
×
83
              .split_lines();
×
84

85
    return &retval;
×
86
}
87

88
const std::vector<attr_line_t>*
89
empty_file()
×
90
{
91
    static const auto retval
92
        = lnav::console::user_message::info(
×
93
              "File is empty, content will be shown when added")
94
              .to_attr_line()
×
95
              .split_lines();
×
96

97
    return &retval;
×
98
}
99

100
}  // namespace lnav::messages::view
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc