topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • Friday May 9, 2025, 1:53 am
  • Proudly celebrating 15+ years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Recent Posts

Pages: prev1 2 3 4 5 [6] 7 8 9 10 11 ... 47next
126
If a static page is enough then perhaps https://surge.sh/
127
If you work plainly with text, which is fine for capturing your thoughts- this looks pretty amazing.  However I find myself thinking how do I get other things in it?
Underlying question: what different ways can something be "in" the system? What way is most useful for what content?

Most of what you listed can already be "in" a plaintext note in the minimal sense of adding a reference/link to it.

But I assume you want more than that. For example, the full plaintext content of a PDF file added as a note on par with the other markdown notes? So that that content becomes searchable and linkable at some more fine grained resolution (chapters/paragraphs/sentences/words). Or a way to embed an audio file, shown as a playback control with pause play and a slider at a specific position in the notes? Or some other way?

We can think of internal and external links. Internal links are resolved inside the software. For example a link in a MD file that links to a section in another MD file. External links point to everything else, items in the local filesystem, or LAN or Internet.
128
brainstorm: plaintext note content hierarchy via indentation

I more and more like the idea of hierarchical notes via pythonic indentation
  with 2 spaces instead of 4, for compactness
  minimal yet very readable in code editor set to show whitespace and fixed width font
  problem: markdown and asciidoc use space/tab indentation for other things
    markdown treats 4 indentation spaces as a code block
    markdown collapses e.g. 3 or 14 spaces to no indentation
      https://stackoverflo...-help#advanced-lists
      https://stackoverflo...ab-space-in-markdown
    https://asciidoctor....tax-quick-reference/

Any ideas/workarounds on using such compact pythonic indentation effectively in markdown based notes apps/systems?

Comparison examples

1. pythonic indentation (2 spaces)
Note: markdown collapses these indents and shows all on one line if not two suffix spaces.

Sun
  big
  hot
  bright
    https://en.wikipedia...rg/wiki/Sun#Sunlight

2. Markdown nested list

- Sun
    - big
    - hot
    - bright
        - https://en.wikipedia...rg/wiki/Sun#Sunlight

3. Markdown nested list alternating bullet characters (more compact, but still extra characters)

- Sun
  + big
  + hot
  + bright
    - https://en.wikipedia...rg/wiki/Sun#Sunlight

Examples screenshot from VS Code with raw and preview tabs
vscode markdown example.png

Wishes unlikely to come true
I wish markdown by default rendered indentation as indentation! For code blocks there is already the three fence ``` prefix/suffix.

I even wish that minus - and plus + at line start (with/without indentation) defaulted to not be interpreted as bullet point list formatting. They should function as list formatting characters only when preceded by a line prefixed with some other character that would start a list. For example a dot . character.
129
This new email service Hey overview got me thinking about workflows.


Brainstorm
Hey's new features include a reply later stack, paper trail filter, editable email subjects, custom threading, custom notifications, attachments browsing/filtering, clips views, annotation/sticky notes on emails, anti spy pixel and more. I want much of that. My overall reaction: Traditional (gmail ...) email workflows sure are restricted and there is lots to improve!

Now, good workflows are crucial also for single person note taking systems (Obsidian, Roam, ...). So we should really compare them in three ways:

1. single note editing/viewing (markdown features, linking syntax, highlighting, autosuggest, shortcuts, plaintext/preview ... )

2. notes as interacting set (auto backlinking, global search/replace, transclusion, "whole book view", code project style side panes, ...)

3. workflows for daily use (timestamps, global history, global todo, work planning, todos, calendar, kanban style planning, github style issues, separate changelog/history files, spaced repetition helpers, quickly picking up work from the day before, scheduled cleanup sessions, ...)

One big question: what workflow tools and structures do we want inside the note system app and what do we want in separate apps or merely in the user's head?

[re: zettelkasten data structure graphic]
Step 1 is going to the inbox
Step 2 is thinking about where it should be once it's in the inbox
I can't get from step 1 to step 2 in most cases.  If I just do it without thinking about it, I get little idiosyncracies in how they're categorized.  So my notes never get from the inbox to the archive referenced.  It's a failing on my part, but I haven't found anything that really helps with that without it seeming like 'too much'.

A workflow issue! Inbox overflow is a super big risk here, just like with email. What note system features do we need to best handle that?
130
Both these command line tools can do it I think but require some work figuring out the syntax and preparing file lists and search replace lists
- The GNU tool SED has a windows version with binaries on chocolatey.
- the command replace in Swiss File Knife

Having a GUI tool for this would be very useful though. With some easy way to manage (1) lists of search/replace string pairs, (2) file lists, (3) jobs that apply some 1 on some 2.

Best to go easy and test run some first before doing real batch edits to files. Or as Spiderman might say "with grep power comes great regexponsibility".  :P
131
Happy to help  :)

Additional note to myself: it seems also possible to disable/reenable devices from Powershell https://stackoverflow.com/a/47262639
132
NirSoft's SoundVolumeView seems to do what you want.

You can switch between disabled and enabled state by using the /DisableEnable command, for example:
SoundVolumeView.exe /DisableEnable "Realtek High Definition Audio\Device\Speakers\Render"

If working then you can simply make a shortcut with such parameters and run it twice to disable and re-enable the DAC.
133
Re: markdown standardization. StackOverflow is switching to CommonMark. I do not envy the person(s) who will sort out all the regex issues during the conversions of the old data. ;D
134
General Software Discussion / Re: OpenSCAD is a game changer for 3d printing
« Last post by Nod5 on June 16, 2020, 01:48 PM »
Brainstorm: Any chance you can reinforce the print? Maybe a flat round metal washer with a centre hole a bit smaller than the D shaped hole. Use a metal file to enlarge the hole to exactly match the D hole. Then edit the CAD to embed the washer in the middle of the gear print.
135
Living Room / Re: Sorry, Ebooks. These 9 Studies Show Why Print Is Better
« Last post by Nod5 on June 15, 2020, 01:35 PM »
With Kindle as the only big exception e-ink displays for reading and note taking is a technology that always seems to be on the verge of mass market breakthrough yet never seems to get there.

These are exactly the kind of reasons that made me first write sumatra_earmarks (earmarks!) and later the much better sumatra_highlight_helper (3 color text highlighting! Color dots! Hotkeys to jump to prev/next/first/last highlight in pdf! Color filtered jumps! And with the jump feature the highlights can also function as earmarks!).

Since this thread has arisen from a 5 year slumber I'll give an update to my old comment: I have since then remade and renamed my helper tool for SumatraPDF to HighlightJump



Unfortunately recent SumatraPDF updates has introduced a bug to the highlights system that also breaks HighlightJump. But once that is sorted by the SumatraPDF dev I will release a working, updated version.
136
FYI- Roam has released its pricing.  It's $15/month.  You can continue for free right now, but as at some point they will do away with the free plan (and their language is shaming people that don't want to pay that price), I'm done with Roam.  That's just way too much a month for me.  Emphasized the part below about the not free forever part...
Only shows how much is in flux right now with these different tools.

One thing I hope for is standardization of some of the newer features. Like double bracket style links, timestamps as references and automatic backlinking, autocompletion and highlighting tailored for note taking, and more. A superset of CommonMark with features for working with information in large sets of interrelated plaintext files.

I've previously mentioned using Everything and AutoHotkey for a DIY quick linking feature. Basically, datestamps or unique filenames as links and a script that on hotkey press copy selection, silently search Everything for that string and take appropriate action. For example, if the selected string has a unique match and it is an image or pdf or txt file, then open it in a preset application. If it is another filetype then open Explorer and select it. If there are multiple matches then open the Everything window with the search results. Etcetera. This can be used regardless of what program I'm reading the plaintext note file in.

Maybe one could also make a decent DIY auto backlinking feature that does not depend on a specific all-features-included note taking app (Roam, Obsidian, ...) by using ripgrep, Everything and AutoHotkey together. Detect plaintext file changes and extract and update backlinks to the currently active plaintext document. Backlinks could show in a child window anchorded to the side of whatever app (Notepad++, ...) used to edit/read a plaintext file.
137
Find And Run Robot / Re: Can I create a list of my aliases?
« Last post by Nod5 on June 04, 2020, 09:49 AM »
Open the FARR options window, click "aliases" in the left pane list and select myaliases.alias in the dropdown. There you get list of aliases with one column each for alias name, regular expression and score.

Right click in that list and click "export" to get another window with a plaintext list in another format. Click that list and do ctrl+A to select all and then Ctrl+C to copy to clipboard. Paste into Notepad.

Though the formatting of that plaintext list is very compact so it is pretty difficult to get an overview of your aliases from reading it I think. Here is an example of what one line in the list can look like
1000>>>virtualbox>->C:\Program Files\Oracle\VirtualBox\VirtualBox.exe>n>C:\virtualbox_shared>+>^(?:virt|virtu|virtua|virtualvbox)$
138
Living Room / Re: 3D Printing - General Discussion
« Last post by Nod5 on May 29, 2020, 03:20 AM »
My boss bought a 3D printer in kit form, which was designed by some Tsechian person or Romanian person, who is known to design quality printers for low prices. I forgot, it has been quite a while since.

Prusa ? Very user friendly printers. They also make the software PrusaSlicer and the Thingiverse alternative Prusaprinters 

A fun thing is that they have a farm of 3D printers to manufacture parts for their 3D printers.
139
I didn't see offhand where codimd supports book mode, which is my major use of hackmd.  And some other features, like workspaces.  And that's just from a cursory look.
...
Longer explanation at https://github.com/c...2539/docs/history.md
The history link helped. Seems CodiMD is not for me either, right now at least, since I don't want to manage a server for notes.

I like the look of HackMD book mode, though might not fit my personal use. But seems very well thought out for many use cases, especially collaborative writing. Is there a way to do global search in a HackMD book? The top left search bar on the demo page only seems to let us search the outline.

Never heard of transclusion before
-wraith808

I guess the terms include, transclude, import and embed are used for roughly the same thing a lot of times. I've mostly seen 'transclude' used for combining non-software plaintext files into a larger whole for e.g. documentation. So maybe the idea with the term there is to contrast that use to including/importing source code in a software project, but I'm not sure.

The HackMD embed feature GIF nicely illustrates what I called raw view and preview modes

kBOTpI2.gif

Unfortunately no third transclude view.

Not surprising though since no other markdown app I've looked at had that either. I searched some more on transcluding markdown today but still no luck. These two links were interesting nonetheless
https://stackoverflo...uding-multiple-files
https://www.reddit.c...th_live_preview_for/

I bet new transclude features will emerge sooner or later, given all these markdown apps and systems competing for users. Big question: Will the giants Google and Microsoft make room for easy markdown use on their platforms too? Imagine the google docs platform but with interlinking, transcluding markdown files.
140
I have no problem with markdown for notes because it's not a distraction. But I do when I'm working on prose and I need to focus on the relationship between the content and language and how it flows and progresses.
Yeah, different formats fit for different use cases I suppose. Though for fiction prose writing maybe special formatting, beyond perhaps italics, would be infrequent enough to not distract much even in raw Markdown mode? Could also help: Many code editors let you tweak and toogle between different themes and highlight schemes. So one could use one where the format pops at times and one more discreet at other times. VS Code and other editors also have a quick toggle for zen mode (minimal mode, distraction free mode, ...) that hides most toolbars and buttons. Example:

zen mode.png

141
General reflection (if I may, Dormouse let me know if you think I'm taking things too off-topic).

I'd love to see a comparison review of these markdown/plaintext "information management apps or systems" (not sure what the best term is) e.g. HackMD, CodiMD, Obsidian and others. First in regard to editing single files (syntax highlighting, shortcuts, autocompletion, ...) but second and more importantly comparison of features for global search, tagging, replacing and organizing the information.

One particular feature I've been thinking about is inclusion/transclusion.

Some apps offer that feature in (extended) Markdown or Asciidoc or with extra tools like Pandoc. My experience or impression is that transcluded content only shows up in these kinds of apps in preview mode and/or generated output, like .html or .pdf.

But I'm curious if some app also offers a third, mid-level mode or view.

1 raw view: the editor shows all syntax unresolved. So transclusion syntax is shown as for example "{{B.md}}". The user has to in a separate step open B.md to see its content, for example "hello world".

2 preview: the editor resolves all syntax, including seamlessly showing transcluded content.

3 transclude view: (this is the feature I'm looking for) the editor resolves only transclusions but no other markdown syntax. For example the editor shows "**weather**" (unresolved) but shows "hello world" (resolved transcluded contents of B.md) instead of "{{B.md}}".

In transclude view edits to the transcluded content would directly edit the source (B.md).

In transclude view the editor/app syntax highlighter would mark transcluded lines with a vertical colored bar. This is necessary so the users knows that edits there will edit the transcluded source. The highlight bar could show parent/child structure: bar on right side = content transcluded into this document; bar on left side = content transcluded from this document into other document). We could also imagine ways to interact with the transcluded content via such highlighting (click bar to open/jump to source; shortcuts to fold/unfold transcluded content; ...)

That could be useful for non-programming, personal use.

To expand, when coding it is often good to not all the time see the content of includes, as it would clutter the code we want to work on. We mostly just use the functions/methods and look up the source of the include only when needed. The imported modules are relatively fixed with a specific purpose. In contrast, for non-coding personal usage we might want to see the transcluded content most of the time while editing. For example when editing shed_build_plan.md we might want to see the resolved contents of hardware_tools_inventory.md most of the time. As a reminder to ourselves and also as context to surrounding text.

A halfway measure along these lines would be something like what the Peek feature in VS Code does for functions/methods/variables, but for non-resolved transclude syntax in Markdown.

Or a more complex version: some extra syntax for the transclude syntax gives case by case control over if and how to resolve it in transclude view (full resolve; resolve as embedded X lines high editbox with scroolbar; resolve only as mouseover tooltip peek; no resolve).
142
Yes, quite a bit.  So much so that I pay for it.  I'm writing my book in it (it has a book type layout), and I thought reading this thread the autolinking feature would be nice for this system.

Cool! Do you have a view on the difference between HackMD and CodiMD? AFAICT they started out as the same project, but CodiMD is a FOSS fork. Confusingly HackMD github seem to still have a (competing) CodiMD repo.

https://hackmd.io/
https://github.com/hackmdio

https://github.com/codimd
https://demo.codimd.org/features#
143
@wraith808, thanks. Are you using hackmd? Looks nice.

@panzer, same question, are you using obsidian?

My biggest takeaway from this thread is that there is an abundance of cool markdown/plaintext tools out there. The big challenge is finding one that fits best with your own workflow and use cases and will not be deprecated soon.
144
If you want to be able to edit in the preview, Texts does just that
Alternatively Typora, which at least someone uses for zettelkasten.
145
I haven't kept up with this thread, but here is just a quick comment on reading Markdown text directly: I find it very easy after only a little practice. At least when the text uses only light formatting (headings, lists, italics, bold, links, ...).  Note also that syntax styling/highlighting in VS Code now also show bold/italics directly in the Markdown text. I used to keep the live preview pane open all the time, but now open it mostly at the end to overview and make small fixes.

vscode.png
146
Microsoft keeps adding nice stuff to the revived PowerToys apps
https://github.com/microsoft/PowerToys

Most recently PowerToys Run, a launcher app that has some similarity with FindAndRunRobot
https://github.com/m...src/modules/launcher

Here are my subjective impressions after some quick tests.

1. PowerToys Run has a nice, clean interface with big fonts and no clutter. It takes inspiration from the launcher Wox.

1.png

FARR can be similarly minimally styled using the slenderFARR skin, display option "Large Icon Slides", dragging to hide the toolbar buttons, and using a script to hide the statusbar text.

2.png

2. Run has built in support for CMD/terminal commands through the > prefix.

3.png

FARR can do that too by creating an alias like this:

alias name: run terminal command
RegEx: ^>(.*)
Results:
cmd | C:\Windows\System32\cmd.exe /c $$1

4.png

5.png

3. PowerToys Run can search and switch to open windows. That's a nice to have feature!

4. PowerToys does not have aliases. FARR has very powerful aliases. That is a huge difference. Aliases make FARR searches and actions very easy to customize - it becomes a much more powerful and versatile tool. Even more so when combined with some small AutoHotkey scripts.

All in all I still prefer FARR. Not a big surprise I suppose!  ;D But its age is showing a bit.
- I wish the FARR default UI had a more flat and minimal design.
- To create/test/edit/share/backup FARR aliases is a bit clunky, which might prevent new users from making and using the more powerful aliases features.
- The FARR options give intricate control of search result scoring, which was perhaps more relevant for the era of slow hardrives than for new faster SSD storage.
147
Nice! Here is a helper hotkey script to more quickly go from a regular FARR search to activating the "choose program" alias for the first search match by using an exclamation character as keyboard shortcut.

Code: Autohotkey [Select]
  1. SetWorkingDir %A_ScriptDir%
  2.  
  3. ; choose program FARR alias helper hotkey script.ahk
  4. ; 2020-05-23
  5. ; by Nod5
  6.  
  7. #IfWinActive, ahk_exe FindAndRunRobot.exe
  8. ; press ! to expand first FARR match file path and append --
  9. !::
  10.   ControlGetFocus, vFocusControl, A
  11.   ; if FARR search box focus and options not open
  12.   if (vFocusControl = "TEdit1")
  13.     if !WinExist("ahk_class TOptionsForm")
  14.     {
  15.       ; show first result file full path in FARR search box
  16.       Send {down}{right}
  17.       ; append -- to trigger "choose program" alias
  18.       Send --
  19.     }
  20. Return

Screenshot of the alias
alias.png

Gif of how it all works
https://imgur.com/a/YzJlRhx

(Edit: cannot embed .mp4 video in forum posts it seems so I added link to Imgur instead)

Edit2: mouser could uppdate FARR with special variables that represent the full path of a file result, maybe %resultfile1% or similar. Then we could skip the AutoHotkey script and instead make an alias that triggers on "!" anywhere in the searchbox and reacts by doing "restartsearch %resultfile1% --".
148
Post New Requests Here / Re: Sort/organize mp3 files by bitrate, into folders
« Last post by Nod5 on May 14, 2020, 07:53 AM »
This worked for me in a quick test. But do try it out on some smaller folders first to see that it works as expected on your files, since mp3 tags and exif data can be complicated and I don't know if the function I use handles all corner cases correctly.

Code: Autohotkey [Select]
  1. SetWorkingDir %A_ScriptDir%
  2.  
  3. ; sort mp3 files into folders based on bitrate and if they are VBR or not
  4. ; AutoHotkey script
  5. ; by nod5
  6. ; 2020-05-14
  7.  
  8. ; ---------------------------------------
  9. ; folder with mp3 files that we want to sort move
  10.  
  11. sourcefolder      := "C:\some\folder"
  12.  
  13. ; also recurse in sourcefolder? 1 means yes, 0 means no
  14. recurse := 1
  15.  
  16. ; target folder where we want the files to end up in subfolders
  17. ; for example VBR files go to \VBR subfolder, 128kbs CBR files got to \128 subfolder
  18.  
  19. destinationfolder := "D:\this other\location"
  20.  
  21. ; ---------------------------------------
  22.  
  23. ; disable recurse if in/out folders are same, to avoid endless loop
  24. if (sourcefolder = destinationfolder)
  25.   recurse := 0
  26.  
  27. ; recursively loop sourcefolder for mp3 files and move to a destinationfolder subfolder
  28. Loop, Files, % sourcefolder "\*.mp3", % recurse ? "R" : ""
  29. {
  30.   ; get audio properties as object
  31.   ; we need these two properties:
  32.   ; System.Audio.EncodingBitrate      examples: 128000 (which is 128kbs), 320000, 263704, ...
  33.   ; System.Audio.IsVariableBitRate    value -1 if VBR otherwise value 0
  34.   Props := ["System.Audio.IsVariableBitRate", "System.Audio.EncodingBitrate"]
  35.   obj := Filexpro(A_LoopFilePath,, Props*)           ; v.90 By SKAN on D1CC @ goo.gl/jyXFo9
  36.  
  37.   ; if VBR then move to subfolder "\VBR"
  38.   if (obj["System.Audio.IsVariableBitRate"] = "-1")
  39.     subfolder := "VBR"
  40.   else
  41.   {
  42.     ; else move CBR to matching bitrate folder, for example "\128"
  43.     ; get bitrate in kbs, for example 128000 -> 128
  44.     subfolder := SubStr(obj["System.Audio.EncodingBitrate"],1,-3)
  45.   }
  46.   if subfolder
  47.   {
  48.     if !FileExist(destinationfolder "\" subfolder)
  49.       FileCreateDir, % destinationfolder "\" subfolder
  50.     FileMove, % A_LoopFilePath, % destinationfolder "\" subfolder
  51.   }
  52. }
  53. ToolTip DONE
  54. sleep 2000
  55.  
  56.  
  57.  
  58. ; function: Filexpro
  59. ; get extended properties from file
  60. ; by SKAN 2018-12-11
  61. ; https://www.autohotkey.com/boards/viewtopic.php?t=59882
  62.  
  63. Filexpro( sFile := "", Kind := "", P* ) {           ; v.90 By SKAN on D1CC @ goo.gl/jyXFo9
  64. Local
  65. Static xDetails
  66.  
  67.   If ( sFile = "" )
  68.     {                                                           ;   Deinit static variable
  69.         xDetails := ""
  70.         Return
  71.     }
  72.  
  73.   fex := {}, _FileExt := ""
  74.  
  75.   Loop, Files, % RTrim(sfile,"\*/."), DF
  76.     {
  77.         If not FileExist( sFile:=A_LoopFileLongPath )
  78.           {
  79.               Return
  80.           }
  81.  
  82.         SplitPath, sFile, _FileExt, _Dir, _Ext, _File, _Drv
  83.  
  84.         If ( p[p.length()] = "xInfo" )                          ;  Last parameter is xInfo
  85.           {
  86.               p.Pop()                                           ;         Delete parameter
  87.               fex.SetCapacity(11)                               ; Make room for Extra info
  88.               fex["_Attrib"]    := A_LoopFileAttrib
  89.               fex["_Dir"]       := _Dir
  90.               fex["_Drv"]       := _Drv
  91.               fex["_Ext"]       := _Ext
  92.               fex["_File"]      := _File
  93.               fex["_File.Ext"]  := _FileExt
  94.               fex["_FilePath"]  := sFile
  95.               fex["_FileSize"]  := A_LoopFileSize
  96.               fex["_FileTimeA"] := A_LoopFileTimeAccessed
  97.               fex["_FileTimeC"] := A_LoopFileTimeCreated
  98.               fex["_FileTimeM"] := A_LoopFileTimeModified
  99.           }              
  100.         Break            
  101.     }
  102.  
  103.   If Not ( _FileExt )                                   ;    Filepath not resolved
  104.     {
  105.         Return
  106.     }        
  107.  
  108.  
  109.   objShl := ComObjCreate("Shell.Application")
  110.   objDir := objShl.NameSpace(_Dir)
  111.   objItm := objDir.ParseName(_FileExt)
  112.                                                                
  113.   If ( VarSetCapacity(xDetails) = 0 )                           ;     Init static variable
  114.     {
  115.         i:=-1,  xDetails:={},  xDetails.SetCapacity(309)
  116.        
  117.         While ( i++ < 309 )
  118.           {
  119.             xDetails[ objDir.GetDetailsOf(0,i) ] := i
  120.           }
  121.  
  122.         xDetails.Delete("")
  123.     }
  124.  
  125.   If ( Kind and Kind <> objDir.GetDetailsOf(objItm,11) )        ;  File isn't desired kind  
  126.     {
  127.         Return
  128.     }
  129.  
  130.   i:=0,  nParams:=p.Count(),  fex.SetCapacity(nParams + 11)
  131.  
  132.   While ( i++ < nParams )
  133.     {
  134.         Prop := p[i]
  135.        
  136.         If ( (Dot:=InStr(Prop,".")) and (Prop:=(Dot=1 ? "System":"") . Prop) )
  137.           {
  138.               fex[Prop] := objItm.ExtendedProperty(Prop)
  139.               Continue
  140.           }
  141.          
  142.         If ( PropNum := xDetails[Prop] ) > -1
  143.           {
  144.               fex[Prop] := ObjDir.GetDetailsOf(objItm,PropNum)
  145.               Continue
  146.           }  
  147.     }
  148.  
  149.   fex.SetCapacity(-1)
  150. Return fex  
  151.  
  152. }

Alternatively if you want a GUI approach you could drag all the mp3 files into Mp3Tag, sort by columns bitrate and VBR, select a range of files e.g. all with 128 kbs and use right click context menu action "move...".
149
Find And Run Robot / Re: Launch, stay open and continue searching
« Last post by Nod5 on April 27, 2020, 12:54 PM »
Another small wrinkle related to the current launch and stay open option: FARR moves focus to the searchbox, instead of keeping focus at the line of the result that was launched.

Here is an AutoHotkey script that somewhat works around both issues. Somewhat since it only works when launching a result that points to file/folder path (not a complex alias result that launches multiple files, passes parameters or other extras). I imagine the script might also fail to keep focus in some situations, depending on how long it takes for the launched file to open in the default app for that extension.

Code: Autohotkey [Select]
  1. SetWorkingDir %A_ScriptDir%
  2.  
  3. ; FARR helper script to launch a file and continue search and keep focus in results list
  4.  
  5. ; 2020-04-27 by Nod5
  6.  
  7. ; Hotkey: Alt+Enter
  8. ; - launches the selected FARR result (a file or folder)
  9. ; - FARR continues searching
  10. ; - FARR stays open and keeps its focus in the results window
  11.  
  12. ; note: does nothing if the selected result is not an existing file/folder.
  13. ; In other words does nothing if the result is an complex alias result.
  14.  
  15. #IfWinActive, ahk_exe FindAndRunRobot.exe
  16. !Enter::
  17.   ; only react if user has focused FARR results list
  18.   ControlGetFocus, vFocusControl, A
  19.   if (vFocusControl != "TNextGrid1")
  20.     Return
  21.   ; get FARR window handle
  22.   vHwnd := WinExist("A")
  23.   ; use ctrl+C to get the path to selected file in FARR results
  24.   ; note: only works if result is a path to a single file (not a complex alias result)
  25.   clip := ClipToVar()
  26.   If !FileExist(clip)
  27.     Return
  28.   ; run the file
  29.   Run % clip
  30.   ; keep the FARR window active
  31.   While WinActive("ahk_id " vHwnd) and (A_Index < 100)
  32.     sleep 10
  33.   WinActivate, % "ahk_id " vHwnd
  34. Return
  35.  
  36. ;function: copy selection to clipboard to variable
  37. ClipToVar() {
  38.   cliptemp := clipboardall ;backup
  39.   clipboard =
  40.   send ^c
  41.   clipwait, 1
  42.   clip := clipboard
  43.   clipboard := cliptemp    ;restore
  44.   return clip
  45. }
150
Official Announcements / Re: Upgrading forum Dec 28, 2019
« Last post by Nod5 on April 25, 2020, 04:48 PM »
Some forums that run on phpBB have inline code and use a [c]tag like this[/c]. For example https://www.autohotkey.com/boards/
I found this customization page https://www.phpbb.co...bcode/inline_bbcode/ but I'm not sure if that is what AutoHotkey and others use today. I know that DC uses SMF though, so maybe that phpBB stuff is not relevant anyway?

I like to use inline code formatting in instructions e.g. when describing some command to type in the terminal or an exact filepath. Less ambiguous than just using quote marks or bold and more compact than adding a code block, especially if there are many small such snippets in a text.
Pages: prev1 2 3 4 5 [6] 7 8 9 10 11 ... 47next