question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Opening Files from the Terminal

See original GitHub issue

Is your feature request related to a problem? Please describe. I want Files to mirror the Windows File Explorer when opening from the command line. So when I use the default Windows file explorer, I like to use the explorer on the command line. This is a big part of my workflow when I want to open the file explorer.

Describe the solution you’d like Typing files in the terminal opens up Files. When I add a directory as an argument it opens the directory instead of the default tab like this files <dir_name>.
Extra Functionality - Multiple arguments like files <dir_1> <dir_2> <dir_3> opens up each directory in a different tab.

Describe alternatives you’ve considered I tried mirroring this functionality by adding the Files executable to the path. Now Files opens up whenever I do files in the command line. But when I try opening a specific directory with files . or files <dir_name> it still opens up the default tab.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
AbhayAysolacommented, Jan 14, 2021

Ah my bad, I need to type in the absolute path instead of the relative one. It would be nice if we didn’t have to type in -Directory and if we could use relative paths. Thanks anyways. Also, are there more commandline options? If so, where can I find them?

0reactions
gave92commented, Mar 7, 2021

Merging with #1751

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to open files via Terminal - command line
To open any file from the command line with the default application, just type open followed by the filename/path. Example:
Read more >
How to Open a File from Mac Terminal [Easy Guide]
1. Use the open command · Navigate to Applications > Utilities. · Start the Terminal. open terminal open file in terminal · Run...
Read more >
How To Run a File in Command Prompt in 4 Easy Steps
How to run a file in command prompt · 1. Open command prompt · 2. Open the file pathway · 3. Execute the...
Read more >
Open File in Linux
Following are some useful ways to open a file from the terminal: · The cat command is a very useful utility to open...
Read more >
IntelliJ IDEA - Open files from the command line
Open an arbitrary file or folder in IntelliJ IDEA from the command line, optionally specifying where to put the caret after opening.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found