Messages - Nod5 [ switch to compact view ]

Pages: prev1 ... 15 16 17 18 19 [20] 21 22 23 24 25 ... 234next
96
Reading https://forum.obsidian.md/t/command-line-interface-to-open-files-folders-in-obsidian-from-the-terminal/860 I stumbled on https://imdone.io/ , a kanban app that reads todo lines from plaintext files.

Have any of you tried using it with Obsidian (or Roam or some other markdown text system)? I like the general idea of adding todos quickly and with relatively little structure along the way when in just-get-text-out writing mode and then use some such tool later to help overview and act on tasks orderly, via kanban or some other method.

97
Minor UI request: option to hide the alias name string that in large icon mode shows under each non-filepath result.
alias_name.png
FARR display options lets us uncheck the "Location" report column. But that hides both alias name strings and filepaths. I'd prefer to only hide the alias name strings and keep filepaths visible.
options.png

Edit:

Alternatively, an option to customize what that smaller line of text contains, through commands in results lines. Perhaps something similar to the "/hint=..." syntax?

I've also noticed that if we use appcapresults to generate a list of results then in some cases FARR shows the string "alias" on this smaller line also in cases where it would have shown e.g. "showfilehtml C:\file.html" if the result was defined in the regular FARR alias settings.

98
Find And Run Robot / Re: Location of settings for FARR?
« on: October 18, 2020, 05:31 AM »
Is there any way I can permanently change the location of these settings? I have some folders I use for settings used in multiple apps

You could make a hard link. That way you can backup/edit the settings in one file location while FARR reads/writes/uses settings in another file location.
https://docs.microsoft.com/en-us/windows-server/administration/windows-commands/mklink
https://www.howtogeek.com/howto/16226/complete-guide-to-symbolic-links-symlinks-on-windows-or-linux/

Like wraith808 wrote, FARR and Everything only partly overlap in features. Everything finds any file on NTFS drives instantly. Raw power! But Everything lacks the kind of custom filters and actions that the FARR aliases feature offers. I think both programs are great.

99
Yeah you're thinking of Settings > Keyboard > Delay search start
delay search option.png
I've tried it and it seems there is a small delay in showing the result also when an alias regex is matched with that option on, which I don't want. (Though that might be an illusion on my part - mouser can you say if that delay happens also when an alias regex match is detected?)

100
In FindAndRunRobot version 2.234.01 mouser added a useful alias command called appcapresults

appcapresults runs an external program, waits for it to output to stdout and then display that output (if correctly formatted) as FARR results lines.

This post shows examples on how to use it together with AutoHotkey to generate a results list in FARR.

Code: Autohotkey [Select]
  1. SetWorkingDir %A_ScriptDir%
  2.  
  3. ; example AutoHotkey script for use with FARR appcapresults
  4.  
  5. ; prepare a results list
  6. ; each line adheres to FARR's format for lines in alias results
  7. ; note: must have a blank line at the end, otherwise the last text line won't show in FARR
  8. Results =
  9. (
  10. Notepad | C:\Windows\System32\notepad.exe
  11. Paint | C:\Windows\System32\mspaint.exe
  12.  
  13. )
  14. ; use fileappend with * to write the list to stdout
  15. FileAppend, % Results , *

1. Save the above script as C:\folder\example.ahk and compile to C:\folder\example.exe

2. Next create a FARR alias
alias name: appcapresults example
alias regex: ^appcap$
alias results:
example | appcapresults C:\folder\example.exe

After that you can type "appcap" in FARR and press enter to get something like this

appcap.png

To make the alias trigger automatically, without Enter, you can change the alias to
example | dolaunch appcapresults C:\folder\example.exe

That's the basics. But this opens up the possibility of complex, conditional aliases. Some possibilities:
- Have the script present different results lists based on the current day/time
- Pass the %lasthwnd% parameter from FARR to the script and have script present different results depending on what window was active before FARR. For example we could make the alias "help" and have it show our own customized help hints based on what application is active. Related earlier post.
- Another example is to have the script search Everything via its SDK and display the search results in FARR, in effect creating an alternative Everything plugin for FARR. This works, though I don't have the code cleaned up enough to post it yet.


edit:

More complex example: alias results conditional on the active window

Code: Autohotkey [Select]
  1. SetWorkingDir %A_ScriptDir%
  2.  
  3. ; complex example conditional AutoHotkey script for use with FARR appcapresults
  4.  
  5. ; window id for active window as parameter sent from FARR
  6. LastHwnd := A_Args[1]
  7.  
  8. ; if active window is Firefox
  9. If LastHwnd and WinExist("ahk_exe Firefox.exe ahk_id " LastHwnd)
  10. {
  11.   Results =
  12.   (LTrim
  13.   Google | https://www.google.com/
  14.   Wiki | https://en.wikipedia.org/
  15.  
  16.   )
  17. }
  18.  
  19. ; if active window is MS Paint
  20. If LastHwnd and WinExist("ahk_exe mspaint.exe ahk_id " LastHwnd)
  21. {
  22.   Results =
  23.   (LTrim
  24.   // use FARR sendkeys command to send action shortcuts to MS Paint
  25.   Resize | sendkeys ^w
  26.   Crop selection | sendkeys ^(+x)
  27.  
  28.   )
  29.  
  30. }
  31.  
  32. ; use fileappend with * to write the list to stdout
  33. FileAppend, % Results , *

1. Save the above script as C:\folder\example2.ahk and compile to C:\folder\example2.exe

2. Next create/edit a FARR alias
alias name: appcapresults example2
alias regex: ^appcap$
alias results:
example | appcapresults C:\folder\example2.exe %lasthwnd%

Type "appcap" and press enter over MS Paint and Firefox to get different results

mspaint2.png

firefox.png

GIF of sending the action shortcuts to MS Paint from FARR
https://i.imgur.com/0SE2wDQ.mp4

edit2: improved complex example

Pages: prev1 ... 15 16 17 18 19 [20] 21 22 23 24 25 ... 234next
Go to full version