LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-03-2013, 03:15 PM   #16
newbiesforever
Senior Member
 
Registered: Apr 2006
Location: Iowa
Distribution: Debian distro family
Posts: 2,375

Original Poster
Rep: Reputation: Disabled

Quote:
Originally Posted by TobiSGD View Post
FWIW, leaving KDE does not mean that you have to abandon all the KDE programs you are used to, they will work fine in other DEs/WMs.
If so, that may apply only to KDE 4. In XFCE, I can run Kwrite-trinity, but only if I sudo it from a terminal. I think it is an issue specific to Trinity, because ever since I switched to Trinity, I've had problems with running things from the desktop that the old KDE (or another desktop) would run from the desktop. For instance, in Trinity I can't run Synaptic from the desktop: Trinity doesn't visibly respond to it, even to request the password. I can run it from a terminal, but only if I borrow root's credentials using sux. This is one of several reasons I'm giving up Trinity and have changed my high opinion of it.
 
Old 05-03-2013, 03:39 PM   #17
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
Trinity is basically a fork of KDE 3 and there shouldn't be any problem to run KDE 3 apps in other desktop environments. I would try to start the applications from the command-line and study the output to see what actually is going on.
Other than that, I would recommend to report the bugs you find to the developers, so that they can fix them.
 
Old 05-10-2013, 06:33 PM   #18
bill_from_tampa
LQ Newbie
 
Registered: Jan 2005
Location: Tampa
Distribution: Debian testing
Posts: 26

Rep: Reputation: 4
emacs can do this several ways, ie
C-u M-! date <ret>

This runs the "date" command and inserts the output into the document at point.
Emacs can do pretty much anything, but the learning curve can be steep!
It should be available (installable) on any linux or windows system.
 
1 members found this post helpful.
Old 05-10-2013, 09:24 PM   #19
newbiesforever
Senior Member
 
Registered: Apr 2006
Location: Iowa
Distribution: Debian distro family
Posts: 2,375

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by bill_from_tampa View Post
emacs can do this several ways, ie
C-u M-! date <ret>

This runs the "date" command and inserts the output into the document at point.
Emacs can do pretty much anything, but the learning curve can be steep!
It should be available (installable) on any linux or windows system.
I'd like to try that, but please explain the first part--where and how do you type that? I went to the section that looks like a terminal, with many messages about the program loading, and typed
Quote:
C-u M-! date
and hit return. Nothing happened.
 
Old 05-11-2013, 03:01 AM   #20
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Quote:
Originally Posted by newbiesforever View Post
I'd like to try that, but please explain the first part--where and how do you type that? I went to the section that looks like a terminal, with many messages about the program loading, and typed and hit return.
Code:
C-u M-! date
Nothing happened.
Did you type that literally? You shouldn't.
Code:
C-u => Ctrl+u
M-! => Alt+!  (Alt+Shift+1)
date <enter>
 
Old 05-11-2013, 10:10 AM   #21
newbiesforever
Senior Member
 
Registered: Apr 2006
Location: Iowa
Distribution: Debian distro family
Posts: 2,375

Original Poster
Rep: Reputation: Disabled
I suspected C was Ctrl; but I couldn't have guessed M- ! was Alt-Shift+1.
 
Old 05-11-2013, 10:24 AM   #22
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
If I know my computer history correctly the M stands for Meta.

These Meta keys ("modifier keys") where found on old keyboards (old Sun Keyboards if I'm not mistaken). The term and abbreviation are still around on (primarily) Unix related systems and Unix programs that where ported to Linux. Emacs and VI have been around for a long time (+/- 40 years).

Other OS's use different names ("Windows" key, "CMD" key (apple), FN keys on laptops etc), but shift, ctrl and (graphic)alt are also modifier keys.
 
Old 05-11-2013, 10:42 AM   #23
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
Quote:
Originally Posted by druuna View Post
If I know my computer history correctly the M stands for Meta.

These Meta keys ("modifier keys") where found on old keyboards (old Sun Keyboards if I'm not mistaken). The term and abbreviation are still around on (primarily) Unix related systems and Unix programs that where ported to Linux. Emacs and VI have been around for a long time (+/- 40 years).

Other OS's use different names ("Windows" key, "CMD" key (apple), FN keys on laptops etc), but shift, ctrl and (graphic)alt are also modifier keys.
Exactly: http://en.wikipedia.org/wiki/Meta_key
 
Old 05-11-2013, 12:04 PM   #24
newbiesforever
Senior Member
 
Registered: Apr 2006
Location: Iowa
Distribution: Debian distro family
Posts: 2,375

Original Poster
Rep: Reputation: Disabled
hmmm...well, I suppose this is something. The result is that Emacs produces the datestamp/timestamp in the terminal instead of in the section displaying the text file. I have to copy and paste it. Between the keystrokes and the copying and pasting, the procedure becomes complex (if hardly difficult) enough that I might as well type the date and time myself.

I've never seen anything beat Windows Notepad for this--F5 and nothing else produces a date/timestamp in the file. (I think I tried using it with Wine once, but it wasn't worth the trouble.) I should learn scripting. Scripts seem to be able to do almost everything, so I expect I could write a script that does what I want in one key.

Tobi, for some reason, I'm not having much success running KDE Trinity programs in another desktop (XFCE). I enter "kwrite" in a terminal (because my KDE programs are not in the XFCE menus), and the terminal doesn't know the command.

Last edited by newbiesforever; 05-11-2013 at 12:14 PM.
 
Old 05-11-2013, 12:19 PM   #25
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
If the terminal doesn't know the programs that means that they are not in your PATH environment variable. I would check that first, but I have no experience at all with Trinity, so I don't know it is installed on your distro.

Quote:
I've never seen anything beat Windows Notepad for this--F5 and nothing else produces a date/timestamp in the file.
Read the third post, from druuna, again, the link given there explains how to achieve exactly that with Vim.

Last edited by TobiSGD; 05-11-2013 at 12:56 PM.
 
Old 05-11-2013, 12:24 PM   #26
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Quote:
Originally Posted by newbiesforever View Post
I've never seen anything beat Windows Notepad for this--F5 and nothing else produces a date/timestamp in the file. (I think I tried using it with Wine once, but it wasn't worth the trouble.) I should learn scripting. Scripts seem to be able to do almost everything, so I expect I could write a script that does what I want in one key.
In one of my first posts I mention vi, doesn't that do just that?

Put this in your vimrc file:
Code:
:nnoremap <F5> "=strftime("%c")<CR>P
:inoremap <F5> <C-R>=strftime("%c")<CR>
Start up vim, press F5 in insert or command mode; Date is inserted at cursor.

Edit: TobiSGD beat me to it....
 
1 members found this post helpful.
Old 05-11-2013, 01:28 PM   #27
newbiesforever
Senior Member
 
Registered: Apr 2006
Location: Iowa
Distribution: Debian distro family
Posts: 2,375

Original Poster
Rep: Reputation: Disabled
I've resisted vi/vim because I'm not prepared to cope with an editor that doesn't even let me see what I'm typing; but I see that it has some GUI packages, so I'll look into it.
 
Old 05-11-2013, 01:45 PM   #28
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
Quote:
Originally Posted by newbiesforever View Post
I've resisted vi/vim because I'm not prepared to cope with an editor that doesn't even let me see what I'm typing;
Where did you get that from? Every character I type in Insert-mode is displayed immediately on the screen, regardless if you use the command-line version (Vim) or the GUI version (GVim).
 
Old 05-11-2013, 01:52 PM   #29
newbiesforever
Senior Member
 
Registered: Apr 2006
Location: Iowa
Distribution: Debian distro family
Posts: 2,375

Original Poster
Rep: Reputation: Disabled
It was some years ago that I actually tried to use Vim, and I may have been doing something wrong.
 
Old 05-11-2013, 01:56 PM   #30
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
Quote:
Originally Posted by newbiesforever View Post
It was some years ago that I actually tried to use Vim, and I may have been doing something wrong.
Possible, the first time I tried it I was quite confused about the concept of a modal editor. Now that I am used to it I don't want to miss it and configure all my programs to have a somewhat similar functionality. And often, if I have to work on a machine without Vim installed I watch myself writing :wq into a random text editor and wondering why nothing happens.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Insert Date timestamp from .gz files. liketheshell Linux - Newbie 2 09-25-2012 08:44 PM
[SOLVED] how to put date and timestamp to bash_history ? dlugasx Linux - General 4 10-28-2009 03:59 PM
How to get date from unix timestamp ruj.sabya Linux - General 9 03-22-2007 05:59 PM
adding date timestamp to filename markraem Solaris / OpenSolaris 2 11-17-2004 08:32 AM
Converting the date (not timestamp) mpgram Programming 2 04-18-2004 03:56 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:29 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration