Closed kojix2 closed 10 months ago
The clipboard was supported in the following way.
This is simple and easy to maintain. People who try to use chatgpt on the terminal must love the command line interface, So it is expected that they have xsel
installed.
Clipboard support is necessary, but Crystal does not have a rich library for it, making it very difficult to support cross-platform clipboard without a library. Therefore, we are considering using a command to execute clipboard functions. For instance, on Linux, using 'xsel' would make it easy to use the clipboard. However, this method does not always work well when placed at the beginning of a command because it is interpreted as a command to be executed, due to it starting with '!'. Implementing exceptions can make it hard to maintain consistency in the configuration file.