Skip to content

Commit

Permalink
support the visualization for count
Browse files Browse the repository at this point in the history
  • Loading branch information
pit-ray committed May 12, 2024
1 parent 54651d1 commit 15dd967
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
8 changes: 7 additions & 1 deletion src/core/entry.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -372,8 +372,12 @@ namespace vind

do {
CmdUnit::SPtr input ;
std::uint16_t count ;
std::uint16_t count = 0 ;
if(!ihub.pull_input(input, count)) {
if(count > 0) {
opt::VCmdLine::reset() ;
opt::VCmdLine::print(opt::StaticMessage(std::to_string(count))) ;
}
continue ;
}

Expand All @@ -390,6 +394,8 @@ namespace vind
break ;
}
std::stringstream ss ;
ss << count ;

auto cmd = matcher->get_command() ;
auto end_itr = cmd.begin() + hist_size ;
for(auto itr = cmd.begin() ; itr != end_itr ; itr ++) {
Expand Down
3 changes: 3 additions & 0 deletions src/core/inputhub.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,9 @@ namespace vind
*input, pimpl->count_.size() > 0) ;
if(!new_count.empty()) {
pimpl->count_ += new_count ;

// Store the count number, but return as false.
count = util::extract_num<std::uint16_t>(pimpl->count_) ;
return false ;
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/core/version.hpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#ifndef _VERSION_HPP
#define _VERSION_HPP

#define WIN_VIND_VERSION "5.11.3.1"
#define WIN_VIND_VERSION "5.13.0.1"

#endif

0 comments on commit 15dd967

Please sign in to comment.