liquid

ghosttoaster 2020-10-16T17:17:46.001Z

is it possible to close a buffer in liquid?

mogenslund 2020-10-16T17:31:15.001600Z

Yes. :bd or :bd! to force close, if it is dirty.

mogenslund 2020-10-16T17:32:19.002200Z

To use more SpaceMacs style use: [space b k]

ghosttoaster 2020-10-16T18:01:41.003200Z

even after I run :bd the buffers are still in my buffer list. Is that expected?

ghosttoaster 2020-10-16T18:02:50.004500Z

For instance: I'm opening links in help. and after I read one I don't want it to clutter my buffer list anymore. But :bd doesn't seem to do that.

mogenslund 2020-10-16T18:10:30.006500Z

Each help topic has its own buffer. So only the current help topic buffer will close when doing :bd. Is that what you are experiencing? If so it is by "design"... Or lack of need. But needs might change of cause.

ghosttoaster 2020-10-16T18:13:00.008100Z

So weird... didn't seem like any of them were closing a minute ago but now everything is closing as expected!

mogenslund 2020-10-16T18:13:59.008900Z

Great 🙂

ghosttoaster 2020-10-16T18:16:47.009500Z

Thank you for the help!

ghosttoaster 2020-10-16T18:17:28.010100Z

I have more questions but please don't feel any pressure to answer them right away.

ghosttoaster 2020-10-16T18:17:45.010400Z

whenever you have time is fine.

mogenslund 2020-10-16T18:21:53.012200Z

No problem. You can just ask. And good to know that I do not need to rush 👍 🙂

👍 1
ghosttoaster 2020-10-16T18:22:43.012900Z

Is it possible to send commands to a running instance of liquid in a repl?

ghosttoaster 2020-10-16T18:25:11.015Z

Either from the terminal or inside liquid? I know you can evaluate statements in a buffer but I can't seem to find the interactive repl to send expressions to.

mogenslund 2020-10-16T18:40:59.015400Z

Hmm. Writing a form in a buffer and evaluating it corresponds directly to evaluation in a repl. It is just buffer based instead of line based. How to solve "your problem", I think depends on, what you are trying to achieve. For example, it would be relatively easy to start a server inside Liquid that accepts a string of code "from outside", which can be evaluated. I think it would also be possible to implement a "line based" shell inside Liquid as a separate mode. I just have not found the advantage compared to evaluation directly in a (possibly temporary) buffer.

ghosttoaster 2020-10-16T18:52:44.016200Z

Yes. Got it. Just wanted to make sure I wasn't missing something.

👍 1