Skip to content

Commit

Permalink
GUI - disable experimental arg completion
Browse files Browse the repository at this point in the history
  • Loading branch information
samaaron committed Sep 10, 2015
1 parent d933ea2 commit d4b5ca3
Showing 1 changed file with 26 additions and 26 deletions.
52 changes: 26 additions & 26 deletions app/gui/qt/sonicpiapis.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -112,32 +112,32 @@ void SonicPiAPIs::updateAutoCompletionList(const QStringList &context,
last == "mc_set_area") {
ctx = MCBlock;

// FX params
} else if (words.length() >= 2 &&
(first == "with_fx" || first == "use_fx")) {
if (last.endsWith(':')) return; // don't try to complete parameters
if (fxArgs.contains(second)) {
list = fxArgs[second];
return;
}

// Synth params
} else if (words.length() >= 2 && first == "synth") {
if (last.endsWith(':')) return; // don't try to complete parameters
if (synthArgs.contains(second)) {
list = synthArgs[second];
return;
}

// Play params
} else if (words.length() >= 2 && first == "play") {
if (last.endsWith(':')) return; // don't try to complete parameters
ctx = PlayParam;

// Sample params
} else if (words.length() >= 2 && first == "sample") {
if (last.endsWith(':')) return; // don't try to complete parameters
ctx = SampleParam;
// // FX params
// } else if (words.length() >= 2 &&
// (first == "with_fx" || first == "use_fx")) {
// if (last.endsWith(':')) return; // don't try to complete parameters
// if (fxArgs.contains(second)) {
// list = fxArgs[second];
// return;
// }

// // Synth params
// } else if (words.length() >= 2 && first == "synth") {
// if (last.endsWith(':')) return; // don't try to complete parameters
// if (synthArgs.contains(second)) {
// list = synthArgs[second];
// return;
// }

// // Play params
// } else if (words.length() >= 2 && first == "play") {
// if (last.endsWith(':')) return; // don't try to complete parameters
// ctx = PlayParam;

// // Sample params
// } else if (words.length() >= 2 && first == "sample") {
// if (last.endsWith(':')) return; // don't try to complete parameters
// ctx = SampleParam;

} else if (context.length() > 1) {
if (partial.length() <= 2) {
Expand Down

0 comments on commit d4b5ca3

Please sign in to comment.