Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: View text files / source code files #2

Open
carlca opened this issue Mar 6, 2018 · 4 comments
Open

Feature request: View text files / source code files #2

carlca opened this issue Mar 6, 2018 · 4 comments

Comments

@carlca
Copy link

carlca commented Mar 6, 2018

Hello. This is a really useful utility, thanks for writing it! Is there any means of viewing the contents of a text file/shell script/source code file, basically any reasonably simply encoded text file. If not can I put it forward as a feature request! Thanks.

@TheJare
Copy link
Owner

TheJare commented Mar 6, 2018

Yeah that goes towards the overall feature of "launching" files according to their type, which is something that makes sense for a tool like this. I didn't do it because my primary goal (besides practicing Go) was moving/copying. I can't say I have plans to work on this tool any further, but this would be one of the main new features if I did.

@carlca
Copy link
Author

carlca commented Mar 6, 2018 via email

@carlca
Copy link
Author

carlca commented Mar 10, 2018

Actually Javier, there is one feature that I could really do with urgently, and I suspect it would be much easier for you to do, since I haven't really studied the code. That feature would simply be for jm to change the terminals PWD to whatever was selected within jm when it is exited. Thus jm could become a really useful folder changer. I see from looking at the code, you have variables whose name contain the string cwd which I assume stands for current working directory, but it's late and I can't get my head around the code at the moment. Is there any chance you could give me a bit of a clue how to achieve my aim? Thanks.

@TheJare
Copy link
Owner

TheJare commented Mar 10, 2018

I don't think this is generally possible. The shell and jm are separate processes, and you can't change the cwd of another process. My systems programming is rusty and maybe this particular bit has changed in some way.

What I do often is to use ":" to drop down to a shell in the directory I am in jm, but that's a child shell, not the original you launched jm from.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants