Messages - Nod5 [ switch to compact view ]

Pages: prev1 ... 33 34 35 36 37 [38] 39 40 41 42 43 ... 234next
186
UltraEdit is nice and capable. Sublime too. But so are VS Code and Atom, and they're both free. So I'd only switch over to UE/Sublime if it does something I need much better than Code/Atom. Will have to see how my testing with the line hide feature goes.

Digression: I love that there are so many user friendly and feature filled code editors to pick from - luxury! VS Code seem to pull ahead of all the others when it comes to user base, at least if this is a good indicator of that
https://insights.stackoverflow.com/survey/2019#technology-_-most-popular-development-environments

187
The feature is available in commercial UltraEdit https://www.ultraedit.com/

Thanks. I'm trying it now in the UE trial. This comes closest to my OP wishlist so far. The hide lines feature for any type of textfile must first be enabled in the settings. After that we doubletap control+F to get "Find and Replace". Click filter checkbox, type a string and hit Enter. Not too slow. Line hiding looks like regular code folding. We can filter in or out and regex filter.

Two drawbacks:
- Filtering/unfiltering could be quicker and fewer steps. I see no direct hotkey to toggle unhide for all the previously hidden lines. But it can be done in two steps: Control+A to select all and then unhide through hotkey or command palette. The filtering command also shares UI with the find and replace. This means that we have to check/uncheck the filter checkbox in Find and Replace window when switching from filtering mode to find and replace mode. If would be quicker if they were separate popup windows.
- UE can split view the text. But any line filtering is synced when the second view is focused. So we can't shift back and forth between views and keep only one of them filtered.

But maybe there are workarounds to these issues through settings or scripts. I'll play some more with it.

Screenshot from UE's Find and Replace window
2.png

Screenshot of UE with split view after line filtering. Notice that both views are filtered.
3.png

but since you are interested in free one, this will not do.
Free isn't required. But as a first step I mostly just want to test drive this kind of feature for a while, to figure out if and when it is most useful compared to regular find and replace and other methods.

My hunch is that the feature would be most useful, and that I'd find more use for it, if the filter/unfilter action is very quick. Ideally a keyboard shortcut for a small searchbox (not with a lot of checkboxes and other functionality) and then filter lines as you type. Similarly one step shortcuts to unfilter all lines, unfilter this line, and so on.

188
How about LogViewer http://www.uvviewsoft.com/logviewer/
I tried it. Interesting tool but not a match here because it seems to not hide lines, only hide/replace text on lines.

Screenshots from Notepad++ to illustrate roughly the kind of line hiding I'm after.

Before hiding
1.png

After hiding
2.png

189
I distinctly remember using Notepad++ to apply a filter to a text file, for the purpose of hiding away 80% of it's content and doing manual changes on the content that still was shown.
Thanks. I see the "Hide Lines" (alt+H) command in Notepad++ menu View. But no "unhide" keyboard shortcut, though clicking the green hidden lines markers in the linenumber column works. Will try the TextFX Viz next.

I'm also tinkering on a small AutoHotkey test script with two views where one is filterable. The two only sync on save yet, I'll try sync as you type next.

Some thoughts from playing with it so far. To be most useful I think this kind of linefilter/accordion tool will need a few extra features:
- Linenumbers is a must
- shortcuts to unhide +1 lines line above or below current position (and +5, and +N)
- smart ways to toggle between edits in the filtered view affecting only visible lines vs all content. E.g. if line 2 is hidden and we select from line 1 to 3, should Delete also remove line 2? Or only 1 and 3?; Ditto find and replace.
- negative filter syntax (e.g. toggle all code comment lines off)
- filtering lines could be very handy together with multi caret editing. You want to rename a variable name everywhere in a long code document. First filter lines with the current variable name. Then hit shortcut to start multi caret editing at the start of the filter string on each visible line. Same end result as find and replace on the filtered view lines, but different visual response and easier to backtrack and adjust the new name while typing it.

190
Find And Run Robot / Re: Possible new facility: runas for aliases
« on: November 26, 2019, 03:42 PM »
the trick I use on the desktop (shift-right-click adds "run as different user" to the context menu) doesn't work in FARR.
Indeed, I didn't know that. The FARR context menu does have the item "Shell context menu" which shows the same context menu you see for the file in Explorer I think, but holding Shift in FARR doesn't have the effect on that menu that it has in Explorer.

A possible second best: you can make a small AutoHotkey script that uses RunAs to run from another user account based on credentials you type in a small GUI popup each time. No credentials permanently stored in plaintext then. But I guess that GUI isn't as secure against other running applications as the the login window from Windows. Depends on how much you trust the computer and programs running on it I suppose.

Another alternative could be a FARR alias that starts a powershell script that asks for user account password and then start the application. Search for "credentials" in this PowerShell manual page.

Pages: prev1 ... 33 34 35 36 37 [38] 39 40 41 42 43 ... 234next
Go to full version