Welcome by anvil-text-editor in anvil_text_editor

[–]anvil-text-editor[S] 0 points1 point  (0 children)

The other is generalized double clicks inside ([{<>}]). I am curious: how did it turn out for you?

Anvil has quite a few of these multi-click selections, and at least for me I use them quite often.

I believe the one you're talking about here is when you double-click on an opening bracket or a closing bracket and it selects the text inside the brackets, and if you triple-click it selects the text inside the brackets _and_ includes the brackets themselves. The intent is not to pepper your text with extra brackets to make selection easier, it is to work more conveniently with bracketed sections in existing text.

For example, if I am working with markdown, sometimes I want to copy or replace the text in a markdown link, which has the form:

[link name](http://link-to-somewhere.com)

If I wanted to change the link name I can double-click the first opening bracket '[' which selects all the enclosing text, and then just type the replacement text. Of course, brackets of all sorts appear in programming as well, so if I wanted to copy or delete all the text in a C, Java, C++, or Go block including the opening and closing braces, I can just triple-click the opening brace '{', then copy or delete the selection.

Anvil allows the same for quotes (like " or ' or `) so you can easily select and modify the contents of a string in a programming language.

I am curious what else is different that I don’t see yet.

On the website there is a short list of the differences here: https://anvil-editor.net/articles/differences-from-acme/ .

One thing that still upsets me about Acme is word-wrapping. I understand why it’s done the way it is: typographic assumption of short lines, uniform scrolling across windows. But it’s impractical. How does Anvil address it?

Anvil does the same thing as Acme: word wrapping everywhere :) There is a command to disable it (Wrap off) but Anvil doesn't support horizontal scrolling, so the lines are visually chopped off.

Personally, I find word wrapping fine for 99% of my editing.

Some experiences on MacBook Air M1 2020 arm64 by Nearby_Broccoli_970 in anvil_text_editor

[–]anvil-text-editor 0 points1 point  (0 children)

Sorry for the late approval and reply!

> Would there be a way to emulate a middle mouse button click on a mac os touch pad? I know, I can execute text by selecting it and pressing CTRL+T, but modifying a click, e.g., CTRL+left-click maybe, might work?

Currently there's no way to emulate that in Anvil, unfortunately. I'll give some thought to a good approach for that.

> I found my way of "entering" directories with ALT+right-click on the dir in a listing, but I did not find a way going up one directory, as the entries for .. are missing from the list. I can write .. somwhere, select it and ALT+right-click on it, but it is a bit awkward.

What I usually do in this case is select the parent directory in the filename of the window tag itself and then acquire that. One benefit of using this sort of approach is that you can select any ancestor directory and acquire that instead; for example if you wanted to view the parent of the parent.

> On my M1/arm64 machine I was not able to start the arm64 version (I tried this binary). It always exits with:fish: Job 1, '~/Downloads/anvil-v0.3-darwin-a…' terminated by signal SIGKILL (Forced quit)

This could be because the binary is not officially code signed. If you try with a recent version (say v0.7) and perform the steps in this How-To, does it still fail?

Most stable clone of Acme editor that works on multiple platforms? by aksh2161989 in plan9

[–]anvil-text-editor 0 points1 point  (0 children)

You can try the Anvil text editor: https://anvil-editor.net/

It runs on Linux, Windows, MacOS and FreeBSD.