vfclists

joined 1 year ago
[–] vfclists@alien.top 1 points 10 months ago

CleverπŸ™‚, but doesn't generalize to other documents.

Is there a command to select a range of characters on a line and extend it as a column to the end of the buffer or narrowed region without scrolling down to mark the actual area?

[–] vfclists@alien.top 1 points 11 months ago (1 children)

The command is specific to the packages list.

It won't work with regular sniper.

[–] vfclists@alien.top 1 points 11 months ago

I didn't know that narrowing could also apply to columns, but narrowing to a rectangular selection means scrolling to the bottom of the listing, which is why I prefer to search in the first place.

 

When I do package-list-packages and I'm searching for a package, the search is not restricted to the package names, but searches the descriptions as well, and this requires scrolling down before starting the search.

Can the search be restricted to the column with the names?

 

Helm-mini enables acting on the file list by using Ctrl-Space to pick those required, though I don't know if that is the only action to be done on the selection.

Is that behaviour unique to helm's completing read implementation, or do other such functions exist?

I need to create an SQL command from a selection from a long list of databases and need something that can pick them individually with highlighting, so once I press Enter, the selection is passed to a function.

The default completing-read-multiple of typing a match and adding a comma is not suitable for this.

UPDATE

After some more searching I've come across this Embark discussion which may help me in what I need. I just need that kind of functionality in a completing-read command, basically something which lets me mark a list of items from a list and apply some arbitrary action to them.

[–] vfclists@alien.top 1 points 11 months ago

I'm trying it and get can't the action menu.

Is this in a new version of helm-projectile-ag?

[–] vfclists@alien.top 1 points 11 months ago

If you want a multithreading Emacs contribute to https://github.com/lem-project/lem. That will probably get you there faster than with Emacs.

Truth is it isn't Emacs that you want, but the features it has. Just replicate them in Lem.

[–] vfclists@alien.top 1 points 11 months ago (1 children)

Please use the four spaces indentation method of formatting code not the triple backtick.

It doesn't look right in the old reddit style format which is better for code.

where is /u/backtickbot when you need it?

 

I'm looking for a way to preview the results of a grep search within files as well as fold the output when there are multiple matches in the same file.

helm-projectile-ag is my current grepping tool but doesn't seem to offer such a facility, unless I haven't read the docs well enough.

My issues are:

  1. It can present a lot of hits in the same file it but lists each one separately. A good option would be to fold the output when there are multiple matches, then I can use the Tab keep to expand the fold and scan through the previews and even edit them right away.

  2. The search panel is modal. It doesn't create a result buffer which you can save and then return to later to continue to select files to edit. Once you lose focus it is gone. It doesn't even seem to retain the search term so you can use it later.

  3. It would be nice to have a window that shows the actual CLI command passed to the search utility. I see them once in a while but it would be good to show them up front or make them easily accessible.

Do any of the project grep tools or helm-projectile-ag itself offer such features?

 

By forward function declarations I mean what is needed when a function defined later in the file is called from a preceding one.

By circular I mean file A requires a function in file B which requires a function in file A. Something along those lines

PS. Apologies for inquiring about this again. I am sure I enquired sometime in the past and forgotten the actual question and the response to it.