]> Sergey Matveev's repositories - nnn.git/commit
Fix #777: input stream ishould trump -s/-S
authorArun Prakash Jana <engineerarun@gmail.com>
Fri, 13 Nov 2020 06:01:11 +0000 (11:31 +0530)
committerArun Prakash Jana <engineerarun@gmail.com>
Fri, 13 Nov 2020 06:07:28 +0000 (11:37 +0530)
commit7afc3eeedd77d6e871e764cb63fb7e794df7e604
tree2521331ecf4d738a31f9016efda8239332e7648b
parent1c4bc318f50f259c368f15e37dbf4b5246eade77
Fix #777: input stream ishould trump -s/-S

If an input stream is available, prioritize that over sessions. find/grep
syntax can be very complex and can be scripted. On the contrary, sessions
can be loaded at runtime and the persistent session can be "restored".

An interesting use case is the listing is done in picker mode from a script
and the user expects to "pick" some entries among the listed search results.

Another important change is - if the user tries to load the "last session"
explicitly by name instead of using the session option _restore_, we should
not overwrite the "last session" ("@") before loading the it.
nnn.1
src/nnn.c