mirror of
https://github.com/textmate/textmate.git
synced 2026-04-28 03:00:34 -04:00
Add bundle item setting for how to re-use output windows
This presently does not have any effect.
This commit is contained in:
@@ -94,7 +94,7 @@ plist::dictionary_t convert_command_from_v1 (plist::dictionary_t plist)
|
||||
|
||||
static void setup_fields (plist::dictionary_t const& plist, bundle_command_t& res)
|
||||
{
|
||||
std::string scopeSelectorString, preExecString, inputString, inputFormatString, inputFallbackString, outputFormatString, outputLocationString, outputCaretString;
|
||||
std::string scopeSelectorString, preExecString, inputString, inputFormatString, inputFallbackString, outputFormatString, outputLocationString, outputCaretString, outputReuseString;
|
||||
|
||||
plist::get_key_path(plist, "name", res.name);
|
||||
plist::get_key_path(plist, "uuid", res.uuid);
|
||||
@@ -123,6 +123,9 @@ static void setup_fields (plist::dictionary_t const& plist, bundle_command_t& re
|
||||
if(plist::get_key_path(plist, "outputCaret", outputCaretString))
|
||||
res.output_caret = pick<output_caret::type>(outputCaretString, "afterOutput", "selectOutput", "interpolateByChar", "interpolateByLine", "heuristic", NULL);
|
||||
|
||||
if(plist::get_key_path(plist, "outputReuse", outputReuseString))
|
||||
res.output_reuse = pick<output_reuse::type>(outputReuseString, "reuseAvailable", "reuseNone", "reuseBusy", "reuseBusyAutoAbort", NULL);
|
||||
|
||||
plist::get_key_path(plist, "autoScrollOutput", res.auto_scroll_output);
|
||||
plist::get_key_path(plist, "disableOutputAutoIndent", res.disable_output_auto_indent);
|
||||
}
|
||||
|
||||
@@ -12,6 +12,7 @@ namespace input_format { enum type { text = 0, xml }; }
|
||||
namespace output { enum type { replace_input = 0, replace_document, at_caret, after_input, new_window, tool_tip, discard, replace_selection }; }
|
||||
namespace output_format { enum type { text = 0, snippet, html, completion_list, snippet_no_auto_indent }; }
|
||||
namespace output_caret { enum type { after_output = 0, select_output, interpolate_by_char, interpolate_by_line, heuristic }; }
|
||||
namespace output_reuse { enum type { reuse_available = 0, reuse_none, reuse_busy, abort_and_reuse_busy }; }
|
||||
|
||||
#ifndef NDEBUG
|
||||
inline char const* to_s (input::type const& input)
|
||||
@@ -58,6 +59,7 @@ struct PUBLIC bundle_command_t
|
||||
output::type output;
|
||||
output_format::type output_format;
|
||||
output_caret::type output_caret;
|
||||
output_reuse::type output_reuse;
|
||||
|
||||
bool auto_scroll_output;
|
||||
bool disable_output_auto_indent;
|
||||
|
||||
@@ -60,6 +60,7 @@ namespace command
|
||||
std::string const& name () const { return _command.name; }
|
||||
oak::uuid_t const& uuid () const { return _command.uuid; }
|
||||
bool auto_scroll_output () const { return _command.auto_scroll_output; }
|
||||
output_reuse::type output_reuse () const { return _command.output_reuse; }
|
||||
bool running () const { return _process.is_running; }
|
||||
pid_t process_id () const { return _process.process_id; }
|
||||
std::map<std::string, std::string> const& environment () const { return _environment; }
|
||||
|
||||
Reference in New Issue
Block a user