mirror of
				https://github.com/vector-im/element-web.git
				synced 2025-11-04 02:02:14 +01:00 
			
		
		
		
	allow / + wait to also show all commands
				
					
				
			Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
		
							parent
							
								
									f152ad84b8
								
							
						
					
					
						commit
						a50f6094cc
					
				@ -128,8 +128,8 @@ export default class CommandProvider extends AutocompleteProvider {
 | 
				
			|||||||
        const {command, range} = this.getCurrentCommand(query, selection);
 | 
					        const {command, range} = this.getCurrentCommand(query, selection);
 | 
				
			||||||
        if (!command) return [];
 | 
					        if (!command) return [];
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        // if the query is just `/` and the user hit TAB, show them all COMMANDS otherwise FuzzyMatch them
 | 
					        // if the query is just `/` (and the user hit TAB or waits), show them all COMMANDS otherwise FuzzyMatch them
 | 
				
			||||||
        const matches = query === '/' && force ? COMMANDS : this.matcher.match(command[1]);
 | 
					        const matches = query === '/' ? COMMANDS : this.matcher.match(command[1]);
 | 
				
			||||||
        return matches.map((result) => {
 | 
					        return matches.map((result) => {
 | 
				
			||||||
            return {
 | 
					            return {
 | 
				
			||||||
                // If the command is the same as the one they entered, we don't want to discard their arguments
 | 
					                // If the command is the same as the one they entered, we don't want to discard their arguments
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user