2011-09-21 16:37:09 +02:00
|
|
|
#ifndef selectors_hh_INCLUDED
|
|
|
|
#define selectors_hh_INCLUDED
|
|
|
|
|
|
|
|
#include "window.hh"
|
|
|
|
|
|
|
|
namespace Kakoune
|
|
|
|
{
|
|
|
|
|
|
|
|
Selection select_to_next_word(const BufferIterator& cursor);
|
|
|
|
Selection select_to_next_word_end(const BufferIterator& cursor);
|
|
|
|
Selection select_to_previous_word(const BufferIterator& cursor);
|
2011-10-25 20:46:14 +02:00
|
|
|
Selection select_to_next_WORD(const BufferIterator& cursor);
|
|
|
|
Selection select_to_next_WORD_end(const BufferIterator& cursor);
|
|
|
|
Selection select_to_previous_WORD(const BufferIterator& cursor);
|
2011-09-21 16:37:09 +02:00
|
|
|
Selection select_line(const BufferIterator& cursor);
|
2011-09-21 21:09:49 +02:00
|
|
|
Selection select_matching(const BufferIterator& cursor);
|
2012-01-04 15:18:08 +01:00
|
|
|
Selection select_surrounding(const BufferIterator& cursor,
|
|
|
|
const std::pair<char, char>& matching,
|
|
|
|
bool inside);
|
2011-10-03 16:29:44 +02:00
|
|
|
|
2011-09-27 16:27:48 +02:00
|
|
|
Selection select_to(const BufferIterator& cursor, char c, int count, bool inclusive);
|
2011-10-03 16:29:44 +02:00
|
|
|
Selection select_to_reverse(const BufferIterator& cursor, char c, int count, bool inclusive);
|
2011-09-21 16:37:09 +02:00
|
|
|
|
2011-10-10 16:24:17 +02:00
|
|
|
Selection select_to_eol(const BufferIterator& cursor);
|
|
|
|
Selection select_to_eol_reverse(const BufferIterator& cursor);
|
2011-11-21 19:53:22 +01:00
|
|
|
|
|
|
|
SelectionList select_whole_lines(const Selection& selection);
|
|
|
|
|
2011-11-21 20:08:51 +01:00
|
|
|
Selection select_next_match(const BufferIterator& cursor,
|
|
|
|
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
|