mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-05-17 15:15:02 +00:00
Allow "e" to act as expand as well
Im getting annoyed at having to write expand all the time, just an e would make things easier and slightly faster
This commit is contained in:
parent
7e9de889d4
commit
ff6812cc4e
1 changed files with 1 additions and 1 deletions
|
@ -1144,7 +1144,7 @@ export class ModActionsPlugin extends ZeppelinPlugin<IModActionsPluginConfig, IM
|
||||||
const showHidden = args.opts && args.opts.match(/\bhidden\b/);
|
const showHidden = args.opts && args.opts.match(/\bhidden\b/);
|
||||||
const casesToDisplay = showHidden ? cases : normalCases;
|
const casesToDisplay = showHidden ? cases : normalCases;
|
||||||
|
|
||||||
if (args.opts && args.opts.match(/\bexpand\b/)) {
|
if (args.opts && (args.opts.match(/\bexpand\b/) || args.opts.match(/\be\b/)) {
|
||||||
if (casesToDisplay.length > 8) {
|
if (casesToDisplay.length > 8) {
|
||||||
msg.channel.createMessage("Too many cases for expanded view. Please use compact view instead.");
|
msg.channel.createMessage("Too many cases for expanded view. Please use compact view instead.");
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue