mirror of
https://github.com/gristlabs/grist-core.git
synced 2026-03-02 04:09:24 +00:00
(core) Improve suggestions for formula autocomplete
Summary: - Make suggestions less case-sensitive (not entirely case-insensitive, but allow top-level suggestions to match in all-lowercase) - Add function signatures to suggestions for Grist functions. - Excel-like functions that are present but not implemented are no longer offered as suggestions. Test Plan: Added a test case on python side, and a browser test case for how suggestions are rendered and inserted. Reviewers: paulfitz Reviewed By: paulfitz Differential Revision: https://phab.getgrist.com/D2608
This commit is contained in:
@@ -9,9 +9,11 @@ import re
|
||||
|
||||
import column
|
||||
from functions import date # pylint: disable=import-error
|
||||
from functions.unimplemented import unimplemented
|
||||
from usertypes import AltText # pylint: disable=import-error
|
||||
from records import Record, RecordSet
|
||||
|
||||
@unimplemented
|
||||
def ISBLANK(value):
|
||||
"""
|
||||
Returns whether a value refers to an empty cell. It isn't implemented in Grist. To check for an
|
||||
@@ -486,6 +488,7 @@ def NA():
|
||||
return float('nan')
|
||||
|
||||
|
||||
@unimplemented
|
||||
def TYPE(value):
|
||||
"""
|
||||
Returns a number associated with the type of data passed into the function. This is not
|
||||
@@ -493,6 +496,7 @@ def TYPE(value):
|
||||
"""
|
||||
raise NotImplementedError()
|
||||
|
||||
@unimplemented
|
||||
def CELL(info_type, reference):
|
||||
"""
|
||||
Returns the requested information about the specified cell. This is not implemented in Grist
|
||||
|
||||
Reference in New Issue
Block a user