2011-09-21 16:37:09 +02:00
|
|
|
#ifndef selectors_hh_INCLUDED
|
|
|
|
#define selectors_hh_INCLUDED
|
|
|
|
|
2012-02-07 15:26:51 +01:00
|
|
|
#include "selection.hh"
|
2011-09-21 16:37:09 +02:00
|
|
|
|
|
|
|
namespace Kakoune
|
|
|
|
{
|
|
|
|
|
2012-02-07 15:26:51 +01:00
|
|
|
Selection select_to_next_word(const Selection& selection);
|
|
|
|
Selection select_to_next_word_end(const Selection& selection);
|
|
|
|
Selection select_to_previous_word(const Selection& selection);
|
|
|
|
Selection select_to_next_WORD(const Selection& selection);
|
|
|
|
Selection select_to_next_WORD_end(const Selection& selection);
|
|
|
|
Selection select_to_previous_WORD(const Selection& selection);
|
|
|
|
Selection select_line(const Selection& selection);
|
|
|
|
Selection select_matching(const Selection& selection);
|
|
|
|
Selection select_surrounding(const Selection& selection,
|
2012-01-04 15:18:08 +01:00
|
|
|
const std::pair<char, char>& matching,
|
|
|
|
bool inside);
|
2011-10-03 16:29:44 +02:00
|
|
|
|
2012-02-07 15:26:51 +01:00
|
|
|
Selection select_to(const Selection& selection,
|
|
|
|
char c, int count, bool inclusive);
|
|
|
|
Selection select_to_reverse(const Selection& selection,
|
|
|
|
char c, int count, bool inclusive);
|
2011-09-21 16:37:09 +02:00
|
|
|
|
2012-02-07 15:26:51 +01:00
|
|
|
Selection select_to_eol(const Selection& selection);
|
|
|
|
Selection select_to_eol_reverse(const Selection& selection);
|
2011-11-21 19:53:22 +01:00
|
|
|
|
2012-02-07 15:26:51 +01:00
|
|
|
Selection select_whole_lines(const Selection& selection);
|
|
|
|
Selection select_whole_buffer(const Selection& selection);
|
2011-11-21 19:53:22 +01:00
|
|
|
|
2012-02-07 15:26:51 +01:00
|
|
|
Selection select_next_match(const Selection& selection,
|
2011-11-21 20:08:51 +01:00
|
|
|
const std::string& regex);
|
|
|
|
|
|
|
|
SelectionList select_all_matches(const Selection& selection,
|
|
|
|
const std::string& regex);
|
|
|
|
|
2011-11-21 20:30:44 +01:00
|
|
|
SelectionList split_selection(const Selection& selection,
|
|
|
|
const std::string& separator_regex);
|
|
|
|
|
2011-09-21 16:37:09 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
#endif // selectors_hh_INCLUDED
|