docs: def set_cursor_position(self, path, position):
          """
          Cache encoding for the specified file path.
  
          :param path: path of the file to cache
          :param position: cursor position to cache
          """
          try:
              map = json.loads(self._settings.value('cachedCursorPosition'))
          except TypeError:
              map = {}
          map[path] = position
          self._settings.setValue('cachedCursorPosition', json.dumps(map))