Closed RenanGreca closed 1 year ago
Looks awesome, I just left a comment about where to put the file like you asked. And one small change for finding the end range. Thank you! This has been needed for a while. Also yes the CE prefix is perfectly fine.
Description
STTextViewController.swift
, I created a subclass ofNSScrollView
to implement a custommouseDown(with event:)
function. The function makes it so, if a click is detected within the ScrollView but out of the contained STTextView, the editor cursor is placed on the last index of the text.I created the subclass at the end of
STTextViewController.swift
, but it should probably go to its own file; upon review I would like suggestions of where to place this file, as none of the current directories seem appropriate for it.Additionally, the name of the class is
CEScrollView
(CE
for CodeEdit); I am not sure if there is a different naming convention customized subclasses.Related Issue
56
Checklist
Screenshots